subdomain/virtualhost problem on unix + apache
- by Aaron
Hello,
I'm having a strangely difficult time setting up a subdomain (x.example.com). The main site works fine, but I get 404 errors attempting to hit x.example.com no matter how I set up the VirtualHost config.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /var/www/example.com/htdocs
ServerAlias example.com
</VirtualHost>
<VirtualHost *:80>
ServerName x.example.com
ErrorLog /var/logs/x-error-log
CustomLog /var/logs/x-access-log common
DocumentRoot /var/www/x/htdocs
</VirtualHost>
As far as I can tell, this is a vanilla set up. Any suggestions would be appreciated.