0

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?

eykanal
  • 335
  • 1
  • 2
  • 13

1 Answers1

0

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.

covener
  • 1,685
  • 9
  • 15