• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 822
  • Last Modified:

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. 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?
0
nanohurtz
Asked:
nanohurtz
  • 3
  • 2
1 Solution
 
bit_rotCommented:
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?
0
 
nanohurtzAuthor 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 http://blahblah.com inside or outside of said blahblah.com 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.
0
 
bit_rotCommented:
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.
0
 
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
0
 
nanohurtzAuthor Commented:
Not complete, but the best possible answer.
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now