
Begin forwarded message:
From: otrs-owner@otrs.org
Date: January 8, 2008 6:43:22 PM PST
To: dvg@jpl.nasa.gov
Subject: ScriptAlias and mod_perl
You are not allowed to post to this mailing list, and your message has
been automatically rejected. If you think that your messages are
being rejected in error, contact the mailing list owner at
otrs-owner@otrs.org.
From: dvg@jpl.nasa.gov
Date: January 8, 2008 6:00:17 PM PST
To: otrs@otrs.org
Subject: ScriptAlias and mod_perl
I did a lot of searching in the archives and it seems that a lot of
people who
are using mod_perl also have this line in their config:
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
I read some documentation which said that this forces the use of
mod_cgi and
that one should instead use the Alias directive along with SetHandler
for
mod_perl. If I use ScriptAlias as above then OTRS works correctly,
but I do
not think it is using mod_perl as the following test script does not
execute
correctly:
my $r = shift;
$r->send_http_header('text/plain');
$r->print("mod_perl rules!\n");
However, I cannot get OTRS to work properly that way (without using
ScriptAlias). It just displays the scripts as plain text instead of
executing
them.
I am running RHEL4 with mod_perl 2.02, CGI.pm 3.33, and apache 2.0.52.
Here is my config:
# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd-new.include.conf,v 1.3 2007/04/16 12:11:53
martin Exp $
# --
# agent, admin and customer frontend
#ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# if mod_perl is used
<IfModule mod_perl.c>
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec
# set mod_perl2 options
participants (1)
-
dvg