
On Thursday, September 09, 2004 8:24 PM
L. Mark Stone
When I type http://inside.rnome.com/otrs/ in a web browser, /var/log/apache2/error.log shows:
[error] [client 24.97.161.122] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
I hope this is helpful in tracking the problem down.
Yes, I remember now, it has something to do with Apache not being able
assigning the DirectoryIndex due to the perl-script handler being first.
Well, there are several ways, as always. You could use s.th. brutal like
this:
ErrorDocument 404 /otrs/index.pl
More elegant is to make use of mod_rewrite:
RewriteEngine On
RewriteRule ^/otrs$ /otrs/
RewriteRule ^/otrs/$ /index.pl [R,L]
Or:
RewriteEngine On
RewriteBase /otrs/
RewriteRule ^/otrs$ /otrs/
RewriteRule ^/otrs/$ /index.pl [R,L]
At last, or if mod_rewrite is no choice, one might think about changing
the <Location> container in apache2-httpd-include.conf in such a way the
perl-handler won't jump in when we want the DirectoryIndex option to
become active. A working apache2-http-include.conf would then look like
this:
# OTRS
Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
<IfModule mod_perl.c>
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
</IfModule>