Re: Is there a way to return non-200 status when HHVM backend is down?

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

 



If you use mod_rewrite instead of ProxyPass, you can specify it should only proxy for files that don't exist. This is an example from the documentation:

RewriteCond "%{REQUEST_FILENAME}" !-f
RewriteCond "%{REQUEST_FILENAME}" !-d
RewriteRule "^/(.*)" "http://old.example.com/$1" [P]

- Y

Sent from a device with a very small keyboard and hyperactive autocorrect.

On Jun 8, 2016 4:13 AM, "linux.il" <linux.il@xxxxxxxxx> wrote:
Hi,
I'm running Apache 2.4 with HHVM backend (.php processing is going to HHVM on :9000 with
ProxyPassMatch directive).
From time to time HHVM  service is freezing, so PHP stuff return 503, but static pages work as usual. I'd like Apache to return 503 or any non-200 status for static pages  in this situation. How this can be done?

TIA,
Vitaly

[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