Re: mod_autoindex not cooperating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux