Apache2 several sites and configuration question

Posted by Hellnar on Stack Overflow See other posts from Stack Overflow or by Hellnar
Published on 2010-05-29T08:42:15Z Indexed on 2010/05/29 8:52 UTC
Read the original article Hit count: 469

Filed under:
|
|

Hello I want to host several sites from my VPS via apache2 under Debian. For this I removed the default from sites-enabled and added this under /etc/apache/sites-enabled/www.mysite.com :

NameVirtualHost *:80

<VirtualHost *:80>
ServerName mysite.com
ServerAlias www.mysite.com

Alias /media/ /home/myuser/mysite/media/
Alias /admin_media/ /home/myuser/django/Django-1.2/django/contrib/admin/media/

WSGIScriptAlias / /home/myuser/mysite/wsgi.py


ErrorLog  /home/myuser/mysite/logs/error.log
CustomLog /home/myuser/mysite/logs/access.log combined

</VirtualHost>

After that I removed the default symbolic link from sites-enabled/ via:

a2dissite default

and added the new one:

a2ensite www.mysite.com

Still, I get this error:

Restarting web server: apache2apache2: apr_sockaddr_info_get() failed for myuser
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 29 11:41:13 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
apache2: apr_sockaddr_info_get() failed for myuser
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 29 11:41:13 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
.

What can be the problem ?

© Stack Overflow or respective owner

Related posts about apache

Related posts about configuration