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

Users outside the domain can see pages with images, while users within the doman cannot.
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. 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?
Who is Participating?
nanohurtzConnect With a Mentor Author Commented:
We have a DNS server with the required A record defined. I am able to see the image outside of the domain when I enter a URL (path) directly to it. My issue is that users WITHIN the domain cannot see the image if they were to enter in the same URL. I am looking for a consistency if users were to enter in inside or outside of said domain.

Note the domain is a virtual one (VM's sitting inside of a blade server). I wonder if I have to define the same thing on the DNA server that resolves the blade enclosure as well.
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?
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...

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.
nanohurtzAuthor Commented:
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
nanohurtzAuthor Commented:
Not complete, but the best possible answer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.