Can Apache be configured to specify more than one docroot per virtualhost?
- by syn4k
I have a vhost which specifies
<VirtualHost *:80>
DocumentRoot "/private/var/www/html/cms/sites/"
ServerName localhost.com
</VirtualHost>
I would like to know if localhost.com can also point to /private/var/www/html/wordpress/. This seems like a no brainer but Apache is like black magic; these things are always possible.
Anyway, I already know that I could specify a new ServerName entry and set a new docroot. The problem is, both directories need to be available as roots.
If I need to provide more info, I will gladly do so.