Attempt to serve directory

Hi
I have setup and installed RT 3.0.0. I am using Solaris 2.6 with Apache
2.0.45 and perl 5.8.0. I also installed mod_perl2. I setup the web interface to
sit on a virtual host as suggested in the docs.

Everything seems to work alright except that if I don't specify an html 

file in all URLs, I get a “Attempt to serve directory” error. I have had this
before on other virtual hosts and solved the problem with a DirectoryIndex line
in the apache config file pointing to index.html. On this virtual hosts however
it fails.

It seems to only happen if I have all the perl stuff setup. That is if I 

comment out the PerlModule, etc settings in the virtual host and just leave it
to serve the RT/share/html pages, then I can specify the URL without an
explicite html file.

Has anyone come across this before.


	David.

| Real-Time Embedded Systems Group | David Bilsby (Senior Engineer) |
| email: d.bilsby@signal.qinetiq.com | QinetiQ Ltd |
| Tel: +44 (1684) 896158 | Room E306, St Andrews Road, |
| Fax: +44 (1684) 894952 | Malvern, Worcs, WR14 3PS, ENGLAND |

The Information contained in this e-mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s). For those
other than the intended recipient any disclosure, copying, distribution, or
any action taken or omitted to be taken in reliance on such information is
prohibited and may be unlawful.

The views expressed herein are entirely those of the author and do not
represent the views, policy or understanding of any other person or
official body.

David Bilsby wrote:

I have setup and installed RT 3.0.0. I am using Solaris 2.6 with Apache
2.0.45 and perl 5.8.0. I also installed mod_perl2. I setup the web interface to
sit on a virtual host as suggested in the docs.

<however, problems ensue…>

See http://lists.fsck.com/pipermail/rt-devel/2003-March/003656.html

�|� http://www.bestpractical.com/rt – Trouble Ticketing. Free.

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@anchor.net.au

    CustomLog /var/log/httpd/rt_access_log combined
    ErrorLog /var/log/httpd/rt_error_log

The important parts are the FileMatch and LocationMatch directives.

jaq@spacepants.org http://spacepants.org/jaq.gpg