[rt-users] Attempt to serve directory

Jamie Wilkinson jaq at spacepants.org
Thu Apr 10 00:00:02 EDT 2003


This one time, at band camp, David Bilsby wrote:
>	Has anyone come across this before.

This one time, at band camp, Canali, Luigi wrote:
>Followed all the instructions in the readme and installed fine, but
>index.html isn't being recognized as the default index page.  If I type
>http://www.domainname.com, I get a 404, but if I type
>http://www.domainname.com/index.html, everything comes up.  From this point,
>I can navigate just fine until I hit links like for the Admin page:
>http://www.domainname.com/Admin/ - here I get another 404, but if I add
>index.html at the end, then the page displays.

<VirtualHost *>
        ServerName rt.anchor.net.au
        DocumentRoot /opt/rt3/share/html
        AddDefaultCharset UTF-8
 
        # this line for Apache2 + modperl2 only
        PerlModule Apache2 Apache::compat
 
        PerlModule Apache::DBI
        PerlRequire /opt/rt3/bin/webmux.pl
 
        <FilesMatch "\.html$">
                SetHandler perl-script
                PerlHandler RT::Mason
        </FilesMatch>
        <LocationMatch "/REST/">
                SetHandler perl-script
                PerlHandler RT::Mason
        </LocationMatch>
        <LocationMatch "/Attachment/">
                SetHandler perl-script
                PerlHandler RT::Mason
        </LocationMatch>

        <IfModule mod_ssl.c>
                SSLEngine On
                SSLCertificateFile /etc/ssl/rt.anchor.net.au_crt
                SSLCertificateKeyFile /etc/ssl/rt.anchor.net.au_key
        </IfModule>
 
        ServerAdmin rt-admin at anchor.net.au
 
        CustomLog /var/log/httpd/rt_access_log combined
        ErrorLog /var/log/httpd/rt_error_log
</VirtualHost>

The important parts are the FileMatch and LocationMatch directives.

-- 
jaq at spacepants.org                           http://spacepants.org/jaq.gpg



More information about the rt-users mailing list