Images being sent as text/html

Hi All,

My RT installation is sending rt.jpg (and spacer.gif, I haven’t checked
other files) as text/html instead of image/jpg or whatever. If I copy
the file to another virtualhost running on the same server, the content
type is set properly. How do I fix this?

binand@binand[~]:(7) nc myserver.mydomain.com http
HEAD /NoAuth/images/rt.jpg HTTP/1.1
Host: rt2.mydomain.com

HTTP/1.1 200 OK
Server: Apache
Set-Cookie: AF_SID=5c385ab492bad981afbd856d108dbd96; path=/
Content-Type: text/html

binand@binand[~]:(8) nc myserver.mydomain.com http
HEAD /rt.jpg HTTP/1.1
Host: anothervhost.mydomain.com

HTTP/1.1 200 OK
Server: Apache
Last-Modified: Mon, 18 Nov 2002 08:06:32 GMT
ETag: “c0602-395-3dd89f88”
Accept-Ranges: bytes
Content-Length: 917
Content-Type: image/jpeg

I am running RT 2.0.13, Apache 1.3.22-6 (Latest redhat update for 7.2),
mod_fastcgi 2.2.12, perl-5.6.1-26.72.3.

Any help will be appreciated. Please let me know if additional details
are required.

TIA,

Binand

My RT installation is sending rt.jpg

[snip]

I am running RT 2.0.13, Apache 1.3.22-6 (Latest redhat update for 7.2),
mod_fastcgi 2.2.12, perl-5.6.1-26.72.3.

yes, this is because of the way you have fastcgi set up. The order of
the Alias directives effects whether or not apache passes the images
off to fastcgi, you don’t want it to. I’ve got:

FastCgiServer /usr/local/rt2/bin/mason_handler.fcgi
Alias /NoAuth/images/ /usr/local/rt2/WebRT/html/NoAuth/images/
ScriptAlias / /usr/local/rt2/bin/mason_handler.fcgi/

seph