Hi,
I am trying to set DirectoryIndex to index.pl so that
index.pl will load as the default document under the otrs directory. Does
anyone have a clue how to do this? I can’t seem to find my way around the
apache configuration to get it to work. I am trying to set directoryIndex as
follows but it wont work. Any idea why?
/etc/httpd/conf.d/otrs.conf:
ScriptAlias /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 Apache::Reload
PerlInitHandler Apache::Reload
# set mod_perl2 options
<Location "/otrs">
# ErrorDocument
403 /otrs/customer.pl
AllowOverride
None
ErrorDocument 403
/otrs/index.pl
PerlHandler
ModPerl::Registry
Options +ExecCGI
PerlOptions
+ParseHeaders
Order allow,deny
Allow from all
SetHandler perl-script
</Location>
</IfModule>
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
DirectoryIndex index.pl
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
Regards,
Tonio Lombardi
ICT Applications
Officer
Information Management Unit
Ministry for
Social Policy
tel: +356 2590 3342
fax: +356 2590 3331
e-mail: tonio.lombardi@gov.mt
www.spic.gov.mt www.msp.gov.mt
Please read our privacy policy: http://www.msp.gov.mt/ministry/email_privacy_policy.asp