Apache2 VirtualHost non-recurring Directory
Hi, I didn't know exactly where to put this, but here it goes:
For the record, I have Apache2 on Ubuntu. OK so I have a "svn" subdomain for SVN repositories. The repositories are actual separate repositories, not a big one for all. So I'm using SVNPath not SVNParentPath (please don't suggest this as a possible fix). The problem is I want to be able to list the repositories (or even put a blank page for that matter) at svn.mydomain.com. All repositories have a svn.mydomain.com/myrepository path with a VirtualHost for each. So when I create another VirtualHost just for the / path, it overrides all the SVN VirtualHosts, as it covers / and all sub-directories. I would like a way to set that VirtualHost to affect just the root directory, without the sub-directories. Or to make the SVN VirtualHosts override it. Either way, is this possible? What approach should I take? Thanks! |
Are you using the NameVirtualHost directive?
I haven't configured vhosts with names like svn.mydomain.com/myrepositorypath. Anotherwords, I am not sure if apache will read the myrepositorypath part of the servername. But if it will, then using NameVirtualHost should work for you. NameVirtualHost 123.123.123.123:80 <VirtualHost 123.123.123.123:80> ServerName svn.mydomain.com DocumentRoot /home/where-ever-1 ... </VirtualHost> <VirtualHost 123.123.123.123:80> DocumentRoot /home/where-ever-2 ServerName svn.mydomain.com/myrepositorypath ... </VirtualHost> |
All times are GMT -5. The time now is 02:35 PM. |