[mp2 ] Request output filters and directories

Clément OUDOT <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Hi all,

I am one of the developer of LemonLDAP::NG (http://lemonldap-ng.org),
a free WebSSO using mod_perl. So to begin, thanks to the mod_perl team
for this great product!

In our code, we are injecting request output filters with the
add_output_filter method. This works well, but we noticed that the
filter is never called on directories, only on files:
* http://test1.example.com/ -> filter not called
* http://test1.example.com/index.pl -> filter called

I use ModPerl 2.0.4 for my tests. My Apache configuration is the following:

---------------

<VirtualHost *:80>
    ServerName test1.example.com
    ServerAlias test2.example.com

    # SSO protection
    PerlHeaderParserHandler My::Package


    # DocumentRoot
    DocumentRoot /usr/local/lemonldap-ng/htdocs/test/
    <Directory /usr/local/lemonldap-ng/htdocs/test/>
        Order deny,allow
        Allow from all
        Options +ExecCGI
    </Directory>

    # Perl script (application test is written in Perl)
    <Files *.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
    </Files>

    # Directory index
    <IfModule mod_dir.c>
        DirectoryIndex index.pl index.html
    </IfModule>

</VirtualHost>

---------------


Can this behaviour comes from the DirectoryIndex and mod_dir?


Thanks for your help,

Clément OUDOT.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.