[MEDIUM] completely implement the server redirection method
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2008 23:45:24 +0000 (00:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2008 23:55:49 +0000 (00:55 +0100)
commit9c33612f53486105421eda8b2a50e09683b2f0ef
tree307ae31035cf380ecaa8de128ea30bf1f0f8435d
parent7a58a72e850cebf04743945108c75cd1bd07d5dd
[MEDIUM] completely implement the server redirection method

Now when a server has "redir <prefix>" on its config line, any HEAD or GET
request addressing it will lead to a 302 with Location set to "<prefix>"
immediately followed by the relative URI of the incoming request. This makes
it very easy to send redirect to browsers to check remote static servers, as
well as to provide redirection for remote sites when the local one is down.
include/types/session.h
src/backend.c
src/proto_http.c