Internal Domain Names
You can edit /etc/hosts/ to add domain names and which IP addresses they refer to.
Any IP address 127.0.0.0.1 through to 127.255.255.254 "loop back" to the machine itself. [x]
Apache2 listens to anything coming to the machine itself regardless of IP Address, then the configs in /etc/apache2/sites-enabled are used to decide what to do based on the domain name used.
So any domains that loop back can be used to access separate internal sites by whatever name you like.
/etc/hosts/ can only contain IP addresses that refer to the machine itself, so unfortunately you can't visit facebook.com via zuckerborg.land
Any IP address 127.0.0.0.1 through to 127.255.255.254 "loop back" to the machine itself. [x]
Apache2 listens to anything coming to the machine itself regardless of IP Address, then the configs in /etc/apache2/sites-enabled are used to decide what to do based on the domain name used.
So any domains that loop back can be used to access separate internal sites by whatever name you like.
/etc/hosts/ can only contain IP addresses that refer to the machine itself, so unfortunately you can't visit facebook.com via zuckerborg.land
Comments
Post a Comment