Am 10.12.2014 14:55 schrieb Dennis Jacobfeuerborn:
Hi,
is there a way to modify the http code of a response? Right now I use a
backup server to deliver a static maintenance page but I want it to be
delivered with a 503 code instead of 200. Is there a way to modify the
response code like this?

I did this approach, e.g. using a dedicated backend instead of 'backup'.
Shortened snippet, but you'd get the idea.

frontend man
 default_backend man-maint
 acl www1nb nbsrv(man-www1) gt 0
 use_backend man-www1 if www1 www1nb

backend man-maint
 rsprep ^HTTP/1.1\ 200\ OK HTTP/1.0\ 503\ Service\ Unavailable
 server local_maint localhost:8001

Reply via email to