You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Henrik Hudson <li...@rhavenn.net> on 2014/12/23 19:36:38 UTC

[users@httpd] PHP proxy loop

So, this bug was submitted awhile ago, but doesn't seem to have any
traction. Is it perhaps a mis-config or a way around this issue?

https://issues.apache.org/bugzilla/show_bug.cgi?id=55415

Basically, if you do:
ProxyErrorOverride On
ProxyPassMatch to send PHP files to php-fpm

and then set ErrorDocument to a PHP file the server will loop and
timeout / hit max loops.

We have a situation where sometimes we want to return a 404 and
sometimes internally redirect to the new page and return a 200, so
we pass 404 requests to a dynamic PHP script. 

The bug notes describe it better, but apparently the 404 status
never resets internally, so when Apache sees another PHP request
it's still thinking "404".

We worked around it, sort of, by using a mod_rewrite to capture 404
(file non-existant) using the -D and -F flags, but we have to return
a 200 all the time. So, not really optimal.

This is Apache 2.4.10

Thanks.


henrik


-- 
Henrik Hudson
lists@rhavenn.net
-----------------------------------------
"God, root, what is difference?" Pitr; UF 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org