httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Bowes <>
Subject [users@httpd] Help with Location directive
Date Wed, 09 Nov 2005 19:50:28 GMT

I'm setting up a FC4 server with Apache2 to host svn + trac.

I'd like to have the following URLs:

Trac home:

Individual Trac projects:

SVN home:

Individual SVN repos:

So far so good.

Here's the relevant section of my apache config:

    DocumentRoot /var/svn/
    Alias /trac/ /usr/share/trac/htdocs/
    <Directory "/usr/share/trac/htdocs">
        Order allow,deny
        Allow from all

    <Location />
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnvParentDir "/var/trac"
        PythonOption TracUriRoot /
        # page to show list of projects goes here
        # PythonOption TracEnvIndexTemplate

    <Location /test1/login>
        AuthType Basic
        AuthName "test1"
        AuthUserFile /var/trac/test1/conf/security/users
        AuthGroupFile /var/trac/test1/conf/security/groups
        Require group test1-users

    <Directory /var/svn/>
        Options ExecCGI FollowSymLinks
        AllowOverride all
        Allow from all
        Order allow,deny

    <Location /repos>
        DAV svn

        # any "/svn/foo" URL will map to a repository /var/svn/foo
        SVNParentPath /var/svn
        # SVNIndexXSLT "/svnindex.xsl"
        AuthType Basic
        AuthName "Subversion repository"
        AuthUserFile /etc/svn-auth-file
            Require valid-user

Now, this basically works OK, apart from one thing, which is what I need
the help with.

To enable XML format listing of the source archives in svn, I'd like to
use the SVNIndexXSLT directive (commented out in the above code.

However, because I'm using mod_python to handle the root location "/"
the requests for svnindex.xsl are intercepted by mod_python.

Any suggestions as to how I can work round this?



If a man speaks in a forest,
and his wife's not there,
is he still wrong?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message