views:

437

answers:

3

Hi,

I am trying to make our subversion repository accessible via multiple URLs. To do so, I was thinking to use the LocationMatch directive. My configuration is:

<Location ~ "/(svn|repository)">
  DAV svn
  SVNPath /opt/svn
  AuthzSVNAccessFile /etc/subversion/access
</Location>

The above configuration does NOT work ... Strange thing is that if i use for example this configuration, it works well for both URLs:

<Location ~ "/(svn|repository)">
  SetHandler server-status
</Location>

For me it looks like the combination of DAV svn and LocationMatch does not really work... or am I doing something wrong here?

A: 

I'm having the same problem. Do you think this is a bug of Apache?

Sumin B
A: 

LocationMatch, not Location?

Wilmer
A: 

Does the client get an error, and is there an error in the HTTP error logs?

SVN may get confused you map multiple locations to a single SVN Repo. See http://subversion.apache.org/faq.html#http-301-error . I'm troubleshooting this for another problem right now.

Does it work if you remove the regular expression? I'll assume yes, but I wanted to verify.

<Location "/svn">
Stefan Lasiewski