Newly added virtualhost not working, domain points to /var/www/
Posted
by
Morgan
on Server Fault
See other posts from Server Fault
or by Morgan
Published on 2012-11-04T07:27:35Z
Indexed on
2012/11/04
11:05 UTC
Read the original article
Hit count: 266
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
© Server Fault or respective owner