Code: Select all
ich habe auf Debian "Etch" mit Apache2 OTRS installiert und möchte im Header-Bereich mein Logo als PNG-Datei anzeigen lassen, das klappt aber nicht so ganz wie gewünscht.
Dazu habe ich die Datei logo.png nach
[code]/usr/share/otrs/bin/cgi-bin/
Code: Select all
<!-- start CI layout -->
<table border="0" width=1000" cellspacing="0" cellpadding="8">
<tr>
<td width="1000" class="header"><IMG src="/logo.png" width="1000" height="255" align="left" border="0"></td>
</tr>
<tr>
<td colspan="2">
<!-- end CI layout -->
Wenn ich die Datei direkt aufrufen will: http://www.website.de/otrs/logo.png, dann erhalte ich ein "Internal Server Error" und im Error-Logfile finde ich die Meldung
[quote][Sat May 17 11:02:47 2008] [error] Unrecognized character \\x89 at /usr/share/otrs/bin/cgi-bin/logo.png line 1.\n[/quote].
Die dazugehörige /etc/apache2/conf.d/otrs2 sieht so aus:
Code: Select all
# --
# added for OTRS (http://otrs.org/)
# --
# agent, admin and customer frontend
ScriptAlias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/usr/share/otrs/var/httpd/htdocs/"
<IfModule mod_perl.c>
# load all otrs modules
Perlrequire /usr/share/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec
</IfModule>
# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
AllowOverride None
ErrorDocument 403 /otrs/index.pl
ErrorDocument 404 /otrs/index.pl
Options +ExecCGI
Order allow,deny
Allow from all
<IfModule mod_perl.c>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond /var/lib/otrs/httpd/htdocs/maintainance.html -l
RewriteRule ^.*$ /otrs-web/maintainance.html
</IfModule>
</Location>
# directory settings
<Directory "/usr/share/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/share/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
Vielen Dank!
KBCalls