Apache2 - Dynamically map url on files ystem

Posted by booze2go on Stack Overflow See other posts from Stack Overflow or by booze2go
Published on 2010-04-01T08:40:29Z Indexed on 2010/04/01 8:43 UTC
Read the original article Hit count: 448

Filed under:
|

Hi Guys,

I'm tying at the moment to dynamically map a url to the file system.

e.g.: www.example.com/~svn/myrepo < to > /var/svn-repos/myrepo

My approach:

<Location /~svn/([a-ZA-Z0-9-_]+)>
        DAV svn
        SVNPath /var/svn-repos/$1
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /etc/apache2/dav_svn_all.passwd
        Require valid-user
</Location>

Any idea how that works?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about apache2

Related posts about apache