Apache2 ignores ServerAlias

Posted by Galen on Server Fault See other posts from Server Fault or by Galen
Published on 2010-04-06T01:11:11Z Indexed on 2010/04/06 1:13 UTC
Read the original article Hit count: 560

the www versions of all my sites work. the non-www version don't work. All non-www versions go to my default vhost (galengrover.com)

Here are the first 2 virtual hosts in httpd.conf.

ServerName galengrover.com

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/sites/galengrover.com/html
    ServerName www.galengrover.com
    ServerAlias galengrover.com
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/sites/skatevideosonline.net/html
    ServerName www.skatevideosonline.net
    ServerAlias skatevideosonline.com
</VirtualHost>

Im clueless. Thanks

© Server Fault or respective owner

Related posts about apache2

Related posts about vhosts