LDSTechForumProjects

Configure hosts file for SSO

The etc/hosts file (pronounced et-see hosts file) is a file that can be edited to add domain names that will be resolved locally in preference to values in the extended DNS system. For example, by adding an entry here we can cause our machine to resolve localhost.lds.org to 127.0.0.1. The format is columnar with the IP address to which a domain name should be resolved located in the first column followed by at least one space or tab character. The second column contains the domain name that will be resolved. To add our address add the following line to the hosts file.

127.0.0.1     localhost.lds.org someothername.lds.org

Adding such a local name resolution is not necessary if your machine is online as there is already a DNS entry for localhost.lds.org that maps to 127.0.0.1. Adding such an entry is required if you are offline so that a location targeting the local machine like http://localhost.lds.org/some/path can be entered in the browser and yet can be for a domain that matches the domain of the cookie being set by the simulator. Were the domain location not to match that of the cookie for the simulator then the cookie is rejected by the browser and will not be submitted with the requests. For very complex setups you may add multiple names on the one line separated by whitespace.

Locations

  • Windows: The etc/hosts file on windows XP is located in C:\WINDOWS\system32\drivers\etc.
  • Unix including Linux: This file is /etc/hosts and should only be editable by root
This page was last modified on 22 March 2012, at 12:37.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.