I have installed apache web server and I need to point 127.1.1.1 with alias (www.someaddress.lan) to local apache. What is the proper way to do it? How to point someaddress.lan to default apache page and www.someaddress.lan to /var/www/wordpress/?
For your hosts file:
By the way, don't you mean 127.0.0.1? That is the loopback ip address for localhost. If so, use the following:
Then you need to edit your apache server config file. Usually /etc/httpd/conf/httpd.conf That is where you associate sub domains (Virtual Hosts) with directories containing the content the apache server serves.
If you want to do without installing any kind of DNS server in your machine, then you can put an entry into
Actually ever host before resolving the domain name by contacting its DNS server, first checks its own
EDIT: You have to add entries for each in
NOTE: Don't forget to restart the