]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] add support for conditional HTTP redirection
authorWilly Tarreau <w@1wt.eu>
Sat, 7 Jun 2008 21:08:56 +0000 (23:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 7 Jun 2008 21:08:56 +0000 (23:08 +0200)
commitb463dfb2de3d80f366d46fc3b4a8e58cbc890d0e
tree434afe62a584051dc2d83b1b61fdfbb80f60fc04
parent8001d6162e7e9fc312d5d9716c45bc972931e44d
[MEDIUM] add support for conditional HTTP redirection

A new "redirect" keyword adds the ability to send an HTTP 301/302/303
redirection to either an absolute location or to a prefix followed by
the original URI. The redirection is conditionned by ACL rules, so it
becomes very easy to move parts of a site to another site using this.

This work was almost entirely done at Exceliance by Emeric Brun.

A test-case has been added in the tests/ directory.
doc/configuration.txt
include/types/proto_http.h
include/types/proxy.h
src/cfgparse.c
src/haproxy.c
src/proto_http.c
tests/test-redirect.cfg [new file with mode: 0644]