Re: mod_autoindex not cooperating

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

 



On 12/13/06, David Scott <ds94103@xxxxxxxxxxxxx> wrote:
David Scott wrote:

Nope, this simply does not work for me.  Here is the latest httpd.conf
snippet:

Listen 3002
<VirtualHost *:3002>
    Alias /static /home/david/pix/html/static
    DocumentRoot /home/david/pix/html
    <Location /static>

Try to replace your <Location> tags with <Directory> tags like this:

<Directory /home/david/pix/html/static>

</Directory>

And keep your alias.

I'm afraid Options +Indexes isn't applicable in the Location context.

        SetHandler default
        Options +Indexes
        Order allow,deny
        Allow from all
    </Location>
    <Directory /home/david/pix/html/static/code>
        SetHandler default
        Options +Indexes +FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

both a request to /static and /static/code return

[Wed Dec 13 12:11:51 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/
[Wed Dec 13 12:12:04 2006] [error] [client 127.0.0.1] Attempt to serve
directory: /home/david/pix/html/static/code/

It's almost as if the +Indexes options is being ignored, or
mod_autoindex isn't there at all.  But it *is* listed as a compiled-in
module:

:~/pix/html$  /usr/local/apache2/bin/httpd -l
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_env.c
  mod_usertrack.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

I'm stumped.  Has anyone else had this problem?

d

>
> ------------------------------------------------------------------------
>
> Subject:
> Re:  mod_autoindex not cooperating
> From:
> "Yvo van Doorn" <yvo.vandoorn@xxxxxxxxx>
> Date:
> Mon, 11 Dec 2006 23:03:36 -0800
> To:
> users@xxxxxxxxxxxxxxxx
>
> To:
> users@xxxxxxxxxxxxxxxx
>
>
> 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
> <mailto: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
>     <http://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
>     <mailto:users-unsubscribe@xxxxxxxxxxxxxxxx>
>        "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>     <mailto:users-digest-unsubscribe@xxxxxxxxxxxxxxxx>
>     For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>     <mailto:users-help@xxxxxxxxxxxxxxxx>
>
>



---------------------------------------------------------------------
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



---------------------------------------------------------------------
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