PHP proxy loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
-----------------------------------------
"God, root, what is difference?" Pitr; UF 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux