"NameVirtualHost *:80 has no VirtualHosts"
root@everything: /etc/init.d/apache2 reload
Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[warn] NameVirtualHost *:80 has no VirtualHosts
Can anyone tell me why I get this warning?
Here is one of the two files, bookgenius.org, that's in the sites-available directory:
ServerAdmin
ServerName bookgenius.org
ServerAlias
Index file and Document Root (where the public files are located)
DirectoryIndex index.html
DocumentRoot /var/www/bookgenius.org/html/
CGI Directory
ScriptAlias /cgi-bin/ /var/www/bookgenius.org/cgi-bin/
AddHandler cgi-script .pl
Custom log file locations
LogLevel warn
ErrorLog /var/www/bookgenius.org/logs/error.log
CustomLog /var/www/bookgenius.org/logs/access.log combined
Thanks,
- Chris
3 Replies
("apache2ctl -S" could explain what it is trying to do better than I can.)
Your command should look like
?\*:80
This should make your job easier