Re: hopefully simple project
"Yonah Russ" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/28/06, Chris Lightfoot <[email protected]> wrote: > > 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. I was afraid of something like that. I'm not sure what you suggest would work in this case because the cgi tracks information such as referals, source ip, etc. Proxying the requests would probably block some of the information- no? Yonah -- > 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/