On Thursday, September 09, 2004 8:24 PM
L. Mark Stone <[EMAIL PROTECTED]> wrote:
> 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>
<Location /otrs>
  ErrorDocument 403 /otrs/index.pl
  DirectoryIndex index.pl
</Location>
<LocationMatch /otrs/.*\.pl>
  Options +ExecCGI
  SetHandler cgi-script
  <IfModule mod_perl.c>
    SetHandler  perl-script
    PerlHandler ModPerl::Registry
    PerlOptions +ParseHeaders
  </IfModule>
</LocationMatch>

hth,

Robert Kehl

-- 
Bedanken m�chten wir uns auch bei den Fans, auf denen wir uns immer
verlassen konnten.
Andreas Brehme

_______________________________________________
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 oder Consulting f�r Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to