[rt-users] Problems under Apache2

Max Bowsher maxb at ukf.net
Wed May 19 05:57:03 EDT 2004


James Austin wrote:
>> Have some strange issues with RT3 under Apache2 with mod_perl2
>>
>> Running RT as a directory not a virtual host config below:
>>
>> AddDefaultCharset UTF-8
>>
>> PerlSetVar MasonArgsMethod CGI
>> PerlModule Apache2 Apache::compat
>> RewriteEngine On
>> RewriteRule ^(.*)/$ $1/index.html
>>
>> PerlModule Apache::DBI
>> PerlRequire /home/rt/bin/webmux.pl
>>
>> Alias /helpdesk "/home/rt/share/html"
>> <Directory "/home/rt/share/html">
>>         AllowOverride none
>>         Options Indexes
>>         Order allow,deny
>>         Allow from all
>> </Directory>
>>
>> <Location "/helpdesk">
>>         SetHandler perl-script
>>         PerlHandler RT::Mason
>> </Location>
>>
>> Now RT works no issues but to get it to work I have to enter the entire URL
>>
>> Ie: http://www.bit.net.au/helpdesk/index.html
>>
>> In fact if I enter just http://www.bit.net.au/helpdesk I see a directory
>> listing and index.html is there.

I had this problem too. It seems that the SetHandler prevents DirectoryIndex from working. The RewriteRule stuff is supposed to
avoid this, but I found the following works better:

# RT
Alias /rt /opt/rt3010/share/html
PerlModule Apache2 Apache::DBI
PerlRequire /opt/rt3010/bin/webmux.pl

<Directory /opt/rt3010/share/html>
  Order allow,deny
  Allow from all
  Options All
  AllowOverride All
  AddDefaultCharset UTF-8
  <Files *.html>
    SetHandler perl-script
    PerlHandler RT::Mason
  </Files>
</Directory>

<Directory /opt/rt3010/share/html/Ticket/Attachment>
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>
<Directory /opt/rt3010/share/html/SelfService/Attachment>
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>
<Directory /opt/rt3010/share/html/REST>
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>
# END RT


Max.




More information about the rt-users mailing list