Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod_fastcgi, apache 2.4, and windows. |
|
Author |
|
covener
Joined: 23 Nov 2008 Posts: 59
|
Posted: Sat 07 Sep '13 22:55 Post subject: mod_fastcgi, apache 2.4, and windows. |
|
|
For legacy reasons, I'm still using mod_fastcgi. mod_fastcgi and Apache are built side by side with the same compiler. Only under 2.4, and only on Windows, my extremely basic test handler never sees the Query string set.
I've tried both getenv() and GetEnviromnmentVariableA() in the fastcgi Program. mod_fastcgi fakes out the global environment so the normal getenv() like calls work as if you were in a CGI.
Has anyone pursued any problems in this neighborhood? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 09 Sep '13 10:28 Post subject: |
|
|
Which scripting language do you use or do you try to use an internal function from mod_fastcgi ? |
|
Back to top |
|
covener
Joined: 23 Nov 2008 Posts: 59
|
Posted: Mon 09 Sep '13 14:06 Post subject: |
|
|
James Blond wrote: | Which scripting language do you use or do you try to use an internal function from mod_fastcgi ? |
I use a very simple C CGI that is linked with the libfcgi from mod_fastcgi -- the only fastcgi exploitation it has is the FCGI_Accept loop at the top. The actual call to look at the query is just getenv(). |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Sun 15 Sep '13 20:05 Post subject: |
|
|
We had to restore a backup, following post from Covener:
Unfortunately already using FCGI_Accept() which assigns the per-request environment to "environ" which allows the standard getenv/GetEnvironmentVariableA to work.
This is also broken only on Windows -- I build the same fcgi binary for multiple platforms. I do notice that mod_fastcgi does use APR to fork the children, which would maybe explain the one moving part in the upgraded 2.4 stac. |
|
Back to top |
|
covener
Joined: 23 Nov 2008 Posts: 59
|
|
Back to top |
|
covener
Joined: 23 Nov 2008 Posts: 59
|
Posted: Tue 26 Nov '13 2:58 Post subject: |
|
|
to completely close the loop, query_string was not set because mod_fastcgi thought we were running as a CGI due to those handles being set, so it short circuited a lot of processing. |
|
Back to top |
|
|
|
|
|
|