By Sudhanshu Raheja
Whenever you setup Ubuntu on a new machine, every apache restart always ends up with a silly error which goes something like :
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Other than the fact that it is slightly irritating, it is usually harmless.
But if you still want to get rid of it, so that you can have a seemingly beautiful apache2 restart, you can just add the following to /etc/apache2/apache2.conf
ServerName vxtindia
Now apache knows what is your server called. But it will get an error if it tries to access the server name directly.
To fix this, you need to go to /etc/hosts and add your IP there.
192.168.1.10 vxtindia
That’s it. You are done!
Gyaan Sutra is about entrepreneurship and technology. It is written and maintained by Sudhanshu Raheja, who is also the founder of Vercingetorix Technologies