httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirko Stocker <>
Subject [users@httpd] Directory Listing only in Subdirectory
Date Wed, 18 Feb 2009 09:25:51 GMT

I have problems getting the following setup to work:

On my server, "Location /" is owned by mod_python, because I'm running a Trac 
as the main site on this domain. Now I'd like to have a directory listing in 
a subdirectory "Location /releases", but I can't get it working. I was able 
to configure it so that files are accessible under this directory with the 
following configuration:

    <Location /releases/>
        SetHandler file

But that's not really what I'd like to have. Now, is there a special handler 
that creates those listings? Note that if I remove my "Location /" 
configuration, I get the listings on /, so that seems to be ok, now I just 
need to get it to work only in the subdirectory :) Oh, and I get a "Attempt 
to serve directory: /var/www/releases/" error in my logfile, but I don't 
really understand what it wants to tell me in my case.

The (I guess relevant) sections from my config:

<VirtualHost * >
    DocumentRoot /var/www/
    ServerName xxx

    <Location /svn>

    <Location />
        SetHandler mod_python
        Order allow,deny
        Allow from all

    <Location /releases/>
        SetHandler file

    <Location /template/>
        SetHandler file

    <Location ~ "/\w+/login">
        AuthType Basic
        AuthName "Trac"
        AuthUserFile /etc/apache2/htpasswd
        Require valid-user


Any help or ideas I could try are very welcome :)



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