Re: [INTERNALS-WIN] PHP and mod_proxy_fcgi on Window
[email protected] (Pierre Joye)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <CAEZPtU7Ka84_PDxQCw-xO27FDX2JPibuLUsfWjEJCfp6imO1og@mail.gmail.com> |
hi! On Fri, Sep 7, 2012 at 4:16 PM, Jiri Tulach - Position <[email protected]> wrote: > Hello, > I found a problem with mod_proxy_fcgi on Windows when SCRIPT_PATH contains > full path with drive letter. > > Imagine this Apache configuration: > > ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:300/C:/Scripts/test/$1 > > Unfortunately this is translated as: > > /C:/Scripts/test/somescript.php > > which is not a valid file. > > I made a simple patch to sapi/fpm/fpm/fpm_main.c which detects absolute path > with drive letter. If found it strips leading slash. It should be againt the (fast)cgi SAPI. FPM is not supported on Windows. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org