I am trying to setup subdomains on my small Ubuntu VPS. However it doens't work :(
I acquired this in httpd.conf
<VirtualHost *:80> ServerName www.vufuzi.com ServerAlias vufuzi.com www.vufuzi.net vufuzi.net DocumentRoot /home/jeremy/sites/vufuzi/www </VirtualHost> <VirtualHost *:80> ServerName test.vufuzi.com ServerAlias test.vufuzi.com test.vufuzi.net DocumentRoot /home/jeremy/sites/vufuzi/test </VirtualHost> <VirtualHost *:80> ServerName www.happymation.se ServerName happymation.se DocumentRoot /home/jeremy/sites/happymation/www </VirtualHost>
So when I restart Apache2 it provides me with this error message:
- Restarting web server apache2 apache2: Couldn't dependably determine the server's properly accredited domain title, using 127..1.1 for ServerName ... waiting apache2: Couldn't dependably determine the server's properly accredited domain title, using 127..1.1 for ServerName
Does anybody have a strategy to this? :)
Thanks ahead of time, enji
That error message
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName pertains to the hostname around the machine.
In case your hostname is placed to something incorrect, like localhost, apache displays that warning message. To get rid of the warning message simply fix your hostname by editing
/etc/hostname and changing it having a valid hostname.
In case your hostname is one thing apart from localhost and you're simply getting that error you will want to include an admission to the /etc/hosts file.
For instance, in case your host is known as pumpkin, you'd add something similar to
127.0.1.1 pumpkin to /etc/hosts.