Wednesday, May 4, 2011

Configure Virtual Host for OTRS

After installing otrs you may need to configure an apache virtual host domain


  UseCanonicalName Off
DocumentRoot /opt/otrs/
ServerName otrs.meine-domain.net:80
ServerAdmin webmaster at meine-domain.net
ErrorLog /var/log/httpd/otrs_error.log
CustomLog /var/log/httpd/otrs_access.log combined

Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
ScriptAlias / "/opt/otrs/bin/cgi-bin/"

Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

PerlModule Apache::Reload
PerlInitHandler Apache::Reload

ErrorDocument 403 /index.pl
AllowOverride None
Options +ExecCGI
SetHandler  perl-script
PerlHandler ModPerl::Registry
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlSendHeader On
PerlSetupEnv On
Order allow,deny
Allow from all
DirectoryIndex index.pl

ErrorDocument 403 /index.pl AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all DirectoryIndex index.pl AllowOverride None Order allow,deny Allow from all

No comments: