Begin forwarded message:
From: [EMAIL PROTECTED]
Date: January 8, 2008 6:43:22 PM PST
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Date: January 8, 2008 6:00:17 PM PST
To: [email protected]
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
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</Location>
</IfModule>
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
#AllowOverride Indexes
AllowOverride None
#DirectoryIndex index.pl
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
Dimitri
--
Dimitrios Gerasimatos [EMAIL PROTECTED]
Section 343 Jet Propulsion Laboratory
4800 Oak Grove Dr. Mail Stop 264-820, Pasadena, CA 91109
Voice: 818.354.4910 FAX: 818.393.7413 Cell: 818.726.8617
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/