httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yvo van Doorn" <yvo.vando...@gmail.com>
Subject Re: [users@httpd] mod_autoindex not cooperating
Date Tue, 12 Dec 2006 07:03:36 GMT
I *could* be wrong on this but don't you need an alias as well such as:
Alias /code "/home/david/pix/html/code"

Another way would be inside the VirtualHost directive and instead of
Location do:
<Directory /home/david/pix/html/code>
        SetHandler default
        Order allow,deny
        Allow from all
        Options +Indexes +FollowSymLinks
</Directory>


On 12/11/06, David Scott <ds94103@earthlink.net> wrote:
>
> I've got apache 2.2.3 running and I'd like to generate an automatic
> directory listing, but I can't.  I've checked and mod_autoindex is
> compiled in statically.  The snippet from my httpd.conf is as follows.
> I'd like a directory listing in the /code location.
>
> Listen 3001
> NameVirtualHost *:3001
> <VirtualHost *:3001>
>     DocumentRoot /home/david/pix/html
>     <Location />
>         PerlSetEnv SQL_DEBUG 1
>         SetHandler perl-script
>         PerlHandler Pix
>         Allow from all
>     </Location>
>     <Location /static>
>         SetHandler none
>     </Location>
>     <Location /code>
>         SetHandler default
>         Order allow,deny
>         Allow from all
>         Options +Indexes +FollowSymLinks
>     </Location>
> </VirtualHost>
>
> The message in the error log is
>
> [Mon Dec 11 16:59:49 2006] [error] [client 127.0.0.1] Attempt to serve
> directory: /home/david/pix/html/code/
>
> I've tried this in just about every way imaginable, disabling the
> mod_perl handler, configuring outside a virtual host, using Options All,
> etc etc etc.  The server simply does not want to give me a directory
> listing.
>
> Can anyone think of anything else I can try to figure this out?
> mod_autoindex is supposed to just work.
>
> d
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message