Set Up Local Hostnames


Overview

Local hostnames allow a site to have a DNS name without the need to set up DNS

Creating Local Hostname

You may want to give mutillidae a hostname so it can be accessed more easily. For example, the following command would create a hostname that can stand in for the IP address 127.0.0.1
echo -e "\n127.0.0.1\tmutillidae.localhost" >> /etc/hosts
Then the site could be access at http://127.0.0.1/home/u307704391/domains/rpi-labs.com/public_html/hints-page-wrapper.php?page=home.php or http://mutillidae.localhost/home/u307704391/domains/rpi-labs.com/public_html/hints-page-wrapper.php?page=home.php