Re: hopefully simple project

Chris Lightfoot <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <4hwx34/[email protected]>
On Thu, Dec 28, 2006 at 04:46:48PM +0200, Yonah Russ wrote:
> Hi,
> 
> I am using a proprietary fast-cgi application via mod_fastcgi which I can't
> modify.
> I want to wrap the application with a simple script to let me add headers to
> whatever response is returned to apache.
> Is this possible? If so, how should I go about it?

wrapping the script is possible but a little nontrivial
(your wrapper script would have to implement the fastcgi
IPC protocol and state machine). I would do this by making
the `wrapper' actually fetch pages from the original
script over HTTP, and return them to the client; then
restrict access to the real app so that it will only
serve pages to the wrapper, and point external clients at
the wrapper script.

-- 
Two economists are walking along the street. The first says, ``Look, there's
a £50 note on the pavement!'' The second replies, ``Don't be silly. If there
were, somebody would already have picked it up.''      (ancient economics joke)
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.