Newly added virtualhost not working, domain points to /var/www/
- by Morgan
I've had no problem with vhosts before, but for some reason this one isn't pointing to the right document root. The domain is pointing to the correct IP, apache sees no errors with the config file in sites-available, yet it just isn't pointing correctly.
Here is the vhost config for the domain:
<VirtualHost *80>
ServerAdmin [email protected]
ServerName mydomain.info
ServerAlias www.mydomain.info
DirectoryIndex index.html
DocumentRoot /var/www/vhosts/mydomain.info/htdocs
LogLevel warn
ErrorLog /var/www/vhosts/mydomain.info/log/error.log
CustomLog /var/www/vhosts/mydomain.info/log/access.log combined
</VirtualHost>
For the record, I am running Apache2 on Ubuntu 12.10