Mapping localhost to http or https URL's in Sharepoint

Posted on 2012-08-14
Last Modified: 2012-10-26
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?
Question by:nanohurtz
    LVL 4

    Expert Comment

    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?

    Accepted Solution

    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.
    LVL 4

    Expert Comment

    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.

    Author Comment

    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

    Author Closing Comment

    Not complete, but the best possible answer.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
    SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now