[rt-devel] [PATCH] FastCGI documentation update

Blair Zajac blair at orcaware.com
Wed Jan 9 16:12:16 EST 2002


Jesse Vincent wrote:
> 
> On Wed, Jan 09, 2002 at 01:00:12PM -0800, Blair Zajac wrote:
> >
> > I'm using Apache 1.3.22 and when I use
> >
> >     ScriptAlias / /path/to/rt2/bin/mason_handler.fcgi
> 
> Try
> 
> ScriptAlias / /path/to/rt2/bin/mason_handler.fcgi/

OK.  The last / is missing in the documentation for FastCGI on

    http://fsck.com/rtfm/article.html?id=2

That works a lot better, but for non-HTML content, such as

    http://rt/NoAuth/images/rt.jpg

When using mod_perl, the Content-Type is properly set:

wget -S http://rt/NoAuth/images/rt.jpg
--13:14:06--  http://rt/NoAuth/images/rt.jpg
           => `rt.jpg'
Resolving rt... done.
Connecting to rt[172.30.1.12]:80... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.1 200 OK
 2 Date: Wed, 09 Jan 2002 21:14:06 GMT
 3 Server: Apache/1.3.22 (Unix) mod_fastcgi/2.2.12 mod_perl/1.26_01-dev
mod_throttle/3.1.2
 4 Last-Modified: Tue, 06 Nov 2001 23:07:00 GMT
 5 ETag: "1fa27-395-3be86d14"
 6 Accept-Ranges: bytes
 7 Content-Length: 917
 8 Keep-Alive: timeout=30, max=100
 9 Connection: Keep-Alive
10 Content-Type: image/jpeg

100%[====================================>] 917          895.51K/s    ETA 00:00

13:14:06 (895.51 KB/s) - `rt.jpg' saved [917/917]



However, using FastCGI with ScriptAlias / /path/to/rt2/bin/mason_handler.fcgi/,
the Content-Type is incorrect: text/html:

it1% wget -S http://rt/NoAuth/images/rt.jpg
--13:14:24--  http://rt/NoAuth/images/rt.jpg
           => `rt.jpg'
Resolving rt... done.
Connecting to rt[172.30.1.12]:80... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.1 200 OK
 2 Date: Wed, 09 Jan 2002 21:14:24 GMT
 3 Server: Apache/1.3.22 (Unix) mod_fastcgi/2.2.12 mod_perl/1.26_01-dev
mod_throttle/3.1.2
 4 X-comp: X/NoAuth/images/rt.jpgX
 5 Set-Cookie: AF_SID=a19bfd8918e3f1227f9ad84d5ae20704; path=/
 6 Connection: close
 7 Content-Type: text/html

    [ <=>                                 ] 913          891.60K/s

13:14:24 (891.60 KB/s) - `rt.jpg' saved [913]

It looks like the handler is handling everything, not just HTML content.

Blair

-- 
Blair Zajac <blair at orcaware.com>
Web and OS performance plots - http://www.orcaware.com/orca/




More information about the Rt-devel mailing list