aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-03-09 17:09:39 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-03-09 17:09:39 +0200
commit129d3c8675dbb67666fd6018716b11e7706cadb8 (patch)
tree5393770f15c57e7bfa7d4e843c646ccff38d714f
parent5976177e6449bad41077a9028c5bd58f1bc347d0 (diff)
downloadhaproxy-bulkredirect-129d3c8675dbb67666fd6018716b11e7706cadb8.tar.gz
haproxy-bulkredirect-129d3c8675dbb67666fd6018716b11e7706cadb8.tar.bz2
Minor changes (mostly typos and spell fixes)
-rw-r--r--bulkredirect.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/bulkredirect.lua b/bulkredirect.lua
index 522d570..d047b65 100644
--- a/bulkredirect.lua
+++ b/bulkredirect.lua
@@ -60,23 +60,23 @@ end
If the entry rt[P1] is found and is a string, it gives the location
of the redirect. Prior to returning a 301 reply, this location is
augmented by pathname part removed from P during the look up process,
- and the quiery part (if any). These modifications are controlled by
- the global variables 'strippath' and 'stripquery', described below.
- If 'strippath' is true, the removed pathname components are not added
- back to the location. Similarly, if 'stripquery' is true, the query
- part is not appended to the location. The 301 reply code is the
- default. If the 'temporary' global variable is set to true, the code
- 302 will be used instead.
+ and the query part (if any). These modifications are controlled by
+ the global variables 'strippath' and 'stripquery'. If 'strippath' is
+ true, the removed pathname components are not added back to the
+ location. Similarly, if 'stripquery' is true, the query part is not
+ appended to the location. The 301 reply code is the default. If the
+ 'temporary' global variable is set to true, the code 302 will be used
+ instead.
If rt[P1] is a table, it must contain a sequence of two elements.
The element rt[P1][1] supplies the new location if Q is not present.
The element rt[P1][2] is an associative table, indexed by possible
- values of Q (including empty value). Both rt[P1][1] and rt[P1][2][X]
+ values of Q (including empty value). Both rt[P1][1] and rt[P1][2][Q]
can contain either a string or a table value. The string value
supplies the new location as described above. The table value
supplies the new location in the element [1]. Rest of elements
(2 up to 5) are boolean values overriding the default global variables
- for this entries. They are located in the following order:
+ for this entry. They are located in the following order:
2 - exact
3 - strippath
@@ -428,7 +428,7 @@ end
local function load_redirect_table ()
local name = os.getenv('HAPROXY_BULKREDIRECT')
if name == nil then
- name = '/etc/haproxy/bulkredirect.lua'
+ name = '/etc/haproxy/bulkredirect.rt'
end
if name:match('%.lua$') then
rt, www, exact, strippath, stripquery, temporary = dofile(name)

Return to:

Send suggestions and report system problems to the System administrator.