Link to home
Start Free TrialLog in
Avatar of nanohurtz
nanohurtz

asked on

Mapping localhost to http or https URL's in Sharepoint

This by far is probably an easy and silly thing but it is baffling me at the moment. Consider the following diagram

User generated image
We have a sharepoint site whose images can only be seen by users OUTSIDE of the hosting domain. Those users that access the site from WITHIN the domain cannot see the image. The image is hardcoded to be referenced from outside the domain (http/https). The solution would be to somehow map local host to the https url being used by those outside the domain, but how to do this?

I hear conflicting arguments about the modification of the /etc/host files (i.e. 127.0.0.1 www.mydomain.com). Apparently modifying this can affect AAM and IIS redirects. What is the best approach to configure Sharepoint so that SSL (https) pages can be seen INSIDE and OUTSIDE the host domain?
Avatar of bit_rot
bit_rot
Flag of United States of America image

Are you not running a DNS server inside of your network?

If you do have a DNS server add an A record for the site and bypass the host files. That would turn into a mess quickly.

If you try to view one of the images directly via url from inside the network what do you get?
ASKER CERTIFIED SOLUTION
Avatar of nanohurtz
nanohurtz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I meant if a user were to directly access an image from inside the network, what do they get? They should receive some kind of error page...

When i say access directly, like this...
http://blahblah/images/picture.jpg

This should give you some sort of error page and maybe more insight.

Have you tried adding the record to a local machines host file like you said to see if that does indeed work? If it does, then you know its dns.
Avatar of nanohurtz
nanohurtz

ASKER

I was just advised that it may be best to setup a UAG or ISA server and populate it with redirects to internal and external links to the image. Otherwise the I am thinking to simply host the image in a sub-domain which can be accessed by both internal and external requests
Not complete, but the best possible answer.