Reputation: 20915
I created a new virtual host for my Django application in Apache in my "sites-available" folder:
NameVirtualHost 74.181.105.228:80
<VirtualHost 74.181.105.228:80>
ServerAdmin [email protected]
ServerName mydomain.com
# Run the SLMCS Django application.
WSGIScriptAlias / /home/david/djangosites/mydomain/wsgi.py
WSGIScriptReloading On
Alias /static/ /home/david/staticFiles/
<Directory /home/david/djangosites/mydomain>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
</Virtualhost>
After I restart Apache with "sudo apachectl restart", the site http://mydomain.com works fine. However, Apache outputs this warning.
apache2: Could not reliably determine the server's fully qualified domain name,
using 74.181.105.228 for ServerName
What does this mean? I specified the ServerName directive in my Virtualhost, right?
Upvotes: 0
Views: 237
Reputation: 132051
Your server doesn't have a ServerName
. You set one, but only for your VirtualHost, not for the server itself.
Upvotes: 2