Hello,
I try to configure our OTRS 2.0.1-installation as Apache2 name based
virtual host. The config-file of the name based virtual hosts looks:
--- snip ---
ServerAdmin netzwerke@mydomain.de
ServerName otrs.mydomain.de
DocumentRoot /opt/otrs/bin/cgi-bin/
#DirectoryIndex index.pl
Alias /otrs-web "/opt/otrs/var/httpd/htdocs"
ErrorLog /var/log/apache2/otrs-error_log
CustomLog /var/log/apache2/otrs-access_log combined
# don't loose time with IP address lookups
HostnameLookups Off
# needed for named virtual hosts
UseCanonicalName Off
# configures the footer on server-generated documents
ServerSignature On
# 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 />
#ErrorDocument 403 /customer.pl
# AllowOverride None
AllowOverride ALL
ErrorDocument 403 /index.pl
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
Order allow,deny
Allow from all
</Location>
# directory settings
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
--- snap ---
But when I try to use the virtual host, I get an error 403
"Not Found
The requested URL / was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use
an ErrorDocument to handle the request."
Apache error-log:
--- snip ---
[Fri Aug 05 09:46:39 2005] [error] [client 172.16.130.1] Attempt to
serve directory: /opt/otrs/bin/cgi-bin/
[Fri Aug 05 09:46:39 2005] [error] file permissions deny server
execution/usr/share/apache2/error/HTTP_NOT_FOUND.html.var
[Fri Aug 05 09:46:39 2005] [error] /opt/otrs/bin/cgi-bin/favicon.ico not
found or unable to stat
--- snap ---
something seems to be wrong with the access-rights :-(
- but, if I go the "normal" way "server.mydomain.de/otrs/",
everything is OK ...
System: SuSE linux 9.3 Professional, Apache 2.0.53, OTRS 2.0.1.
installed from the RPM.
Access-rights and ownerships are:
drwxr-xr-x 8 root root 216 Aug 4 13:54 /opt
drwxrwxr-x 7 otrs www 728 Aug 4 13:54 /opt/otrs
drwxrwxr-x 4 wwwrun www 1176 Aug 4 13:54 /opt/otrs/bin
drwxrwxr-x 3 wwwrun www 248 Aug 4 15:31 /opt/otrs/bin/cgi-bin
drwxrwxr-x 2 wwwrun www 48 Aug 1 14:02 /opt/otrs/bin/cgi-bin/cpanel
- -rwxrwxr-x 1 wwwrun www 1527 Aug 1 14:02
/opt/otrs/bin/cgi-bin/customer.pl
- -rwxrwxr-x 1 wwwrun www 1419 Aug 1 14:02 /opt/otrs/bin/cgi-bin/faq.pl
- -rwxrwxr-x 1 wwwrun www 1515 Aug 1 14:02
/opt/otrs/bin/cgi-bin/index.pl
- -rwxrwxr-x 1 wwwrun www 4202 Aug 1 14:02
/opt/otrs/bin/cgi-bin/installer.pl
- -rwxrwxr-x 1 wwwrun www 1524 Aug 1 14:02
/opt/otrs/bin/cgi-bin/public.pl
What do I have to adjust, that OTRS runs properly as name based virtual
host?
TIA
Christoph.
--
Mit freundlichen Gruessen / Yours sincerely
Christoph Haas
Linux User #99546
GnuPG-/PGP-fingerprint: 944B D713 F72F 4398 B156 8089 DA8B 68F1 1543 51C3
GnuPG-/PGP-public-key:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x154351C3