DJSweetness DJSweetness - 24 days ago 5
Apache Configuration Question

Setting domain name for ip address on pi (Apache, DHCP)

I set up my pi to broadcast it's own "wifi" and I have an Apache server running on it.

I used this tutorial https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point

I can currently connect to the network that the pi is set up with and go to the ip of the server on my phone and it brings up the webpage, but I want to be able to type in "mydomain.net" and have it bring me to the webpage. Can anyone help me with this or suggest anything?

Answer

you can modify /etc/hosts file on your local machine to point the custom domain name to the IP address of the environment you want to test. The /etc/hosts file contains a mapping of IP addresses to URLs.

Your browser uses entries in the /etc/hosts file to override the IP-address-to-URL mapping returned by a DNS server.

This is only useful for testing DNS (domain name system) changes and the SSL configuration before making a website live.

Comments