On Fri, Aug 2, 2024 at 3:12 AM Yann Ylavic <ylavic....@gmail.com> wrote:
>
> On Fri, Aug 2, 2024 at 12:18 AM Yann Ylavic <ylavic....@gmail.com> wrote:
> >
> > So we probably should keep encoding r->filename with ProxyPass, and
> > come back to my previous patch which skipped it only for SetHandler?
> > Possibly FCGI_MAY_BE_FPM() only too because for "ProxyFCGIBackendType
> > GENERIC" we don't send the "proxy:scheme://host" part and
> > SCRIPT_NAME/FILENAME are supposed to be the real decoded paths?
>
> So I did this in r1919629.
>
> >
> > But it's going to be an endless issue if we can't fix or align
> > ProxyPass and SetHandler because of workarounds there, we have to
> > remain bug compatible..
>
> For this how about this attached patch?
> With it I can get the correct env vars (I think), and since we'd not
> send a "proxy:" SCRIPT_FILENAME anymore, php-fpm would not flag
> "apache_was_there" and work straight with the raw vars? I'm probably
> having a sweet dream :)
> Just in case..

PS: the script needs to exist in the DOCUMENT_ROOT for this to work,
but that's how php-fpm works I suppose.

Reply via email to