[rt-devel] [PATCH] FastCGI documentation update
Blair Zajac
blair at orcaware.com
Wed Jan 9 11:50:42 EST 2002
In trying to get FastCGI going, I discovered a typo and how to get FastCGI
working.
There is a typo on
http://fsck.com/rtfm/article.html?id=2
I think the line
AddHandler fastcgi-script fsgi
should read
AddHandler fastcgi-script fcgi
the last s -> c.
The documented additions to httpd.conf for FastCGI are:
LoadModule fastcgi_module modules/mod_fastcgi.so
AddModule mod_fastcgi.c
AddHandler fastcgi-script fsgi
FastCgiServer /path/to/rt2/bin/mason_handler.fcgi
ScriptAlias / /path/to/rt2/bin/mason_handler.fcgi
ScriptAlias will send all requests for any HTML and non-HTML content to
the mason_handler.fcgi, which is not what one wants to do. Only URLs ending
in / or .html should be handled by the mason_handler.fcgi and everything
else served normally. This does the trick:
LoadModule fastcgi_module modules/mod_fastcgi.so
AddModule mod_fastcgi.c
AddHandler fastcgi-script fcgi
FastCgiServer /path/to/rt2/bin/mason_handler.fcgi
ScriptAliasMatch (.*/)$ /path/to/rt2/bin/mason_handler.fcgi$1
ScriptAliasMatch (.*\.html)$ /path/to/rt2/bin/mason_handler.fcgi$1
Best,
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