Example: The document root of virtualHost is /var/www, and server name is "aaa.com". However, apache will tell my forbidden if I access the server with "localhost" and "aaa.com". If I change the Directory option in http.conf to "/var/www", apache will work well. I don't know why? and I want to set Directory option in every httpd-vhosts.conf, not in httpd.conf, how I can do it?
http.conf:

httpd-vhosts.conf:
http.conf- <Directory "/var/Wwww/"> (4 w`s) – s.webbandit May 4 '12 at 11:38DocumentRootand other own settings. If these settings are after each other, what's the problem? You could be more specific, your question is a bit unclear to me. So, what if you put the "default" host settings to the filehttpd-vhosts.conf, AND after that, you put the otherVirtualHostsettings too. EDIT: oh yeah, I just saw webbandit's comment, he's absolutely right. – Sk8erPeter May 4 '12 at 12:00