Got apache 2.2 listening on 2 ports: one for public serving and just added the second one for maintenance purposes. Now, Here's what works:
<VirtualHost *>
ServerName some.public.domain
DocumentRoot /var/www
<Location /svn>
DAV svn
SVNPath /var/svn
</Location>
</VirtualHost>
And this doesn't:
<VirtualHost 127.0.0.1:40>
ServerName localhost
DocumentRoot /var/www_tmp
<Location /svn>
DAV svn
SVNPath /var/svn/concrete_repo
</Location>
</VirtualHost>
Accessing http://localhost:40/svn results in a
File does not exist: /var/www_tmp/svn
record in apache error log. Any ideas?
TIA.
Document root should exists, the Dav mapping is made only on the Location part.
In other words apache (without Dav) must be aware of its document root, then mod_dav can do the trick and create a "virtual" DOCUMENT_ROOT/svn
Do you have this directive before the VirtualHost?
You have
and
probably a typo...fix it and see what happens
Ok, here's what has worked out: