Page MenuHomePhabricator

Need to set up squid-friendly rewrite rules for payments server downtime
Closed, ResolvedPublic

Description

When the payments server goes down for maintenance, testing, etc. we used to use Apache rewrite rules to redirect a user to a 'Downtime' page. Now that Squid is handling web requests, we need to configure Squid to be able to emulate this behavior.


Version: unspecified
Severity: enhancement

Details

Reference
bz25620

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:12 PM
bzimport set Reference to bz25620.
bzimport added a subscriber: Unknown Object (MLST).

Hacktually, forget the squid. We'll use iptables to redirect people to lighttpd running a non-standard port serving only DownTime.html. Proof of concept in place, need to script it so we can easily go up/down.

Wrote init.d script to bring up/down downtime with optional white-listable ipaddress to still get web access to the box. Works nicely.