You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Marlier, Ian" <ma...@studentuniverse.com> on 2004/07/12 19:39:42 UTC
modperl preventing index pages from displaying?
Hey, all --
I recently finished setting up an install of Apache2 and modperl on a
SuSE 9.1 server. The install was done from RPM.
The server primarily runs a trouble ticketing system which uses
HTML::Mason and MySQL for page displays and content. All of the perl
functionality is present and working.
The problem at the moment is that modperl seems to be
over-riding/preventing the display of index.html index pages (or
index.php, or index.shtml, or anything else). Has anyone else seen this
behavior, or does anyone have suggestions as to where I might start to
look?
I have a vague suspicion that the "set-handler perl-script" option is
somehow responsible...but I'm not sure...
Some relevant sections of the /etc/apache2/httpd.conf file:
ServerRoot "/opt/rt3/share/html"
LoadModule access_module
/usr/lib/apache2-prefork/mod_access.so
LoadModule actions_module
/usr/lib/apache2-prefork/mod_actions.so
LoadModule alias_module
/usr/lib/apache2-prefork/mod_alias.so
#LoadModule auth_module
/usr/lib/apache2-prefork/mod_auth.so
#LoadModule auth_dbm_module
/usr/lib/apache2-prefork/mod_auth_dbm.so
LoadModule autoindex_module
/usr/lib/apache2-prefork/mod_autoindex.so
LoadModule cgi_module
/usr/lib/apache2-prefork/mod_cgi.so
LoadModule dir_module
/usr/lib/apache2-prefork/mod_dir.so
LoadModule env_module
/usr/lib/apache2-prefork/mod_env.so
#LoadModule expires_module
/usr/lib/apache2-prefork/mod_expires.so
LoadModule include_module
/usr/lib/apache2-prefork/mod_include.so
LoadModule info_module
/usr/lib/apache2-prefork/mod_info.so
LoadModule log_config_module
/usr/lib/apache2-prefork/mod_log_config.so
LoadModule mime_module
/usr/lib/apache2-prefork/mod_mime.so
LoadModule negotiation_module
/usr/lib/apache2-prefork/mod_negotiation.so
LoadModule perl_module /usr/lib/apache2/mod_perl.so
LoadModule php4_module
/usr/lib/apache2-prefork/libphp4.so
#LoadModule rewrite_module
/usr/lib/apache2-prefork/mod_rewrite.so
LoadModule setenvif_module
/usr/lib/apache2-prefork/mod_setenvif.so
#LoadModule ssl_module
/usr/lib/apache2-prefork/mod_ssl.so
LoadModule status_module
/usr/lib/apache2-prefork/mod_status.so
#LoadModule suexec_module
/usr/lib/apache2-prefork/mod_suexec.so
#LoadModule userdir_module
/usr/lib/apache2-prefork/mod_userdir.so
LoadModule usertrack_module
/usr/lib/apache2-prefork/mod_usertrack.so
DocumentRoot "/opt/rt3/share/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
DirectoryIndex index.html index.html.var index.php index.php3 index.cgi
index.pl
<Directory "/opt/rt3/share/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/perl-lib">
AllowOverride None
Options None
Order allow,deny
Deny from all
</Directory>
<IfModule mod_perl.c>
PerlRequire "/etc/apache2/mod_perl-startup.pl"
PerlRequire "/opt/rt3/bin/webmux.pl"
ScriptAlias /perl/ "/srv/www/cgi-bin/"
<Location /perl/>
# mod_perl mode
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"
<Location /cgi-perl>
# perl cgi mode
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
</IfModule>
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: modperl preventing index pages from displaying?
Posted by Wouter van Vliet <li...@woutervanvliet.nl>.
On maandag 12 juli 2004 20:39, Stas Bekman wrote:
> Marlier, Ian wrote:
>> Hey, all --
>>
(..)
>>
>> The problem at the moment is that modperl seems to be
>> over-riding/preventing the display of index.html index pages (or
>> index.php, or index.shtml, or anything else). Has anyone else seen
>> this behavior, or does anyone have suggestions as to where I might
>> start to look?
>>
>> I have a vague suspicion that the "set-handler perl-script" option is
>> somehow responsible...but I'm not sure...
>
> Correct. This:
>
>> <Location />
>> SetHandler perl-script
>> PerlHandler RT::Mason
>> </Location>
>> </IfModule>
>
> Tells apache to delegate all response phase handling to modperl. To
> adjust certain filetypes to be handled by other handlers, add another
> rule *after* that section. e.g.:
>
> <Files ~ "\.shtml">
> SetHandler default-handler
> </Files>
>
>
I think it would even be a bit better to not have php files (or anything
else) in the directory RT uses, and leave the ticketing system alone. Not
sure, but it might rely on html/shtml or whatever files to be sent through
the RT::Mason handler. Might wanna consider to change the <Location /> part
to point to the location your RT files are at. So, if you access your RT
installation via http://some.host.com/rtickets/ you use <Location
/rtickets>. Or move this bit of configuration to your <VirtualHost> section,
... Or use the <Directory> tag to point to your RT installation path.
Wouter
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: modperl preventing index pages from displaying?
Posted by Stas Bekman <st...@stason.org>.
Marlier, Ian wrote:
> Hey, all --
>
> I recently finished setting up an install of Apache2 and modperl on a
> SuSE 9.1 server. The install was done from RPM.
>
> The server primarily runs a trouble ticketing system which uses
> HTML::Mason and MySQL for page displays and content. All of the perl
> functionality is present and working.
>
> The problem at the moment is that modperl seems to be
> over-riding/preventing the display of index.html index pages (or
> index.php, or index.shtml, or anything else). Has anyone else seen this
> behavior, or does anyone have suggestions as to where I might start to
> look?
>
> I have a vague suspicion that the "set-handler perl-script" option is
> somehow responsible...but I'm not sure...
Correct. This:
> <Location />
> SetHandler perl-script
> PerlHandler RT::Mason
> </Location>
> </IfModule>
Tells apache to delegate all response phase handling to modperl. To
adjust certain filetypes to be handled by other handlers, add another
rule *after* that section. e.g.:
<Files ~ "\.shtml">
SetHandler default-handler
</Files>
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html