[rt-users] Apache2 Alias setup for rt3

Max Bowsher maxb at ukf.net
Mon Jun 28 18:26:26 EDT 2004


Andre Truter wrote:
> Does anybody have a working example of the Apache 2 configuration to use
> rt3 as an Alias?
> 
> I am trying to get rt3 to work on Fedora Core1, but I am having
> difficulties.
> So far I have only set up RT on Apache 1.x and all the examples that I
> can find in the documentation is for Virtual Host setup, which we don't
> want to do.

This is what I'm using to run rt3.2.0 release candidates on Fedora Core 2.

# I think you know what this does :-)
Alias /rt /opt/rt31/share/html

# This is because I didn't want to install RT's required perl modules
# into the system perl library area.
<Perl>
  use lib '/home/mob22/perl/lib';
</Perl>
# These next 2 lines are straight from documentation.
PerlModule Apache2 Apache::DBI
PerlRequire /opt/rt31/bin/webmux.pl
# I seem to need this to work around an error.
# "Cannot find 'RT/Mason.pm' in include path"
<Perl>
  $INC{'RT/Mason.pm'} = 1;
</Perl>

# Mostly straight from documentation
<Directory /opt/rt31/share/html>
  Order allow,deny
  Allow from all
  Options All
  AllowOverride All
  AddDefaultCharset UTF-8
# Except this. This is an alternative to the Rewrite* directives
# in the documentation. The reason for them is because the
# standard DirectoryIndex behaviour is suppressed by SetHandler
# I had problems getting the Rewrite solution to work, and
# arrived at this alternate method.
  <Files *.*>
    SetHandler perl-script
    PerlHandler RT::Mason
  </Files>
</Directory>

# Catch a few things needed as well as the Files *.* above
<Directory /opt/rt31/share/html/Ticket/Attachment>
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>
<Directory /opt/rt31/share/html/SelfService/Attachment>
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>
<Directory /opt/rt31/share/html/REST>
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>



Hope that helps.

Max.





More information about the rt-users mailing list