Does using apache VirtualHost disable access to non-VirtualHost directories?

Posted on

Does using apache VirtualHost disable access to non-VirtualHost directories? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about mac-osx, apache-2.2, virtualhost, , .

Very similar to this question, I just wanted to clarify one thing. If I begin with a vanilla Mac OS X Apache install (using their default httpd.conf file), and then add a named VirtualHost to my apache install, how do I access the files in the original <Directory> directive? Do I need to re-specify the original <Directory> I was using to serve documents as a second named VirtualHost?

Solution :

Yes, your idea is right.

The base configuration acts as a default virtual host if you don’t have a vhost matching a connection, so if you’re going from 0 vhosts to 1, you might shoot right to two where the first-listed in the set of NVH’es doesn’t override the DocumentRoot from the base configuration. The 2nd NVH then has ServerName/ServerAlias for the stuff you actually wanted to be different.

Leave a Reply

Your email address will not be published. Required fields are marked *