]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: mention the new HTTP 307 and 308 redirect statues
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Mar 2013 18:28:11 +0000 (19:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Mar 2013 10:22:59 +0000 (11:22 +0100)
doc/configuration.txt

index 525452765109f76a5324165848653f8c13f445a5..805a7ebd2f3a3e4db4c34e630aa7677d3553078b 100644 (file)
@@ -317,6 +317,8 @@ Haproxy may emit the following status codes by itself :
    301  when performing a redirection, depending on the configured code
    302  when performing a redirection, depending on the configured code
    303  when performing a redirection, depending on the configured code
+   307  when performing a redirection, depending on the configured code
+   308  when performing a redirection, depending on the configured code
    400  for an invalid or too large request
    401  when an authentication is required to perform the action (when
         accessing the stats page)
@@ -4591,12 +4593,14 @@ redirect scheme   <sch> [code <code>] <option> [{if | unless} <condition>]
               HTTPS.
 
     <code>    The code is optional. It indicates which type of HTTP redirection
-              is desired. Only codes 301, 302 and 303 are supported, and 302 is
-              used if no code is specified. 301 means "Moved permanently", and
-              a browser may cache the Location. 302 means "Moved permanently"
-              and means that the browser should not cache the redirection. 303
-              is equivalent to 302 except that the browser will fetch the
-              location with a GET method.
+              is desired. Only codes 301, 302, 303, 307 and 308 are supported,
+              with 302 used by default if no code is specified. 301 means
+              "Moved permanently", and a browser may cache the Location. 302
+              means "Moved permanently" and means that the browser should not
+              cache the redirection. 303 is equivalent to 302 except that the
+              browser will fetch the location with a GET method. 307 is just
+              like 302 but makes it clear that the same method must be reused.
+              Likewise, 308 replaces 301 if the same method must be used.
 
     <option>  There are several options which can be specified to adjust the
               expected behaviour of a redirection :