You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Frankowski <mf...@winternet.com> on 2003/03/14 21:19:35 UTC

[users@httpd] Apache 2.1/mod-perl(Mason)/DirectoryIndex question

Good Afternoon,

  I am trying to get "DirectoryIndex" to work with an HTML-Mason 1.19
program, rt. I am running an Apache CVS copy from March 12th, and a
mod-perl copy from the same day.

  Numbers - Solaris 2.8
          - Apache 2.1-cvs
          - Mason 1.19
          - gcc 3.2.1

  Piece of config file modified to protect the guilty...

<VirtualHost *>
    DocumentRoot /usr/local/rt3/share/html
    ServerName rt.dom.ain
    AddDefaultCharset UTF-8

    PerlModule Apache2 Apache::compat
    PerlModule Apache::DBI
    PerlRequire /usr/local/rt3/bin/webmux.pl

    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason   	
    </Location>

    <Directory "/usr/local/rt3/share/html">
#        Options Indexes FollowSymLinks Includes ExecCGI
        DirectoryIndex index.html
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

  I have done different combiniation of where I put the DirectoryIndex
directive, and which Options I am using, none of it seems to work.

  Problem - I am getting the

      Attempt to serve directory: /usr/local/rt3/share/html/

  error message even with the DirectoryIndex command.

  Guess at what is happening -

    Apache gets the request, hands it off to mod-perl which runs Mason
and passes it in. Mason is setup, right now, to decline any
"directory" requests, so it gets passed back into Apache which then
rolls down to the "default_handler" in core.c which hands me an error.

  Questions - Where is DirectoryIndex suppose to change "/" into
"/index.html", how does DirectoryIndex link into the "fixups" list, and
why is calling mod-perl as a handler preventing (it appears)
DirectoryIndex from being used at all.

  Truth - I don't want to dig into the source code without a better
idea of what is going on in there. I am being lazy.

  Thanks in advance (TIA) for all ideas,

    - Michael Frankowski  (mfrankow@winternet.com)

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