Coolx World - Computer ???
HaPxory 1.8 non-www www로 리다이렉트하기 (Internet일반)
2018-02-27 16:17 - swindler
1.8문서에 아래와 같이 씌여져 있다.

http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#redirect location

http-request redirect code 301 location \
http://www.%[hdr(host)]%[capture.req.uri] \
unless { hdr_beg(host) -i www }


참고로 줄 바꿈 표기를 위해서\ 를 사용했지만, 실제로 저렇게 multi line 으로 작성하면 오류난다.
1줄로 작성해야함.

이런 테스트를 할때 브라우저 cache 때문에 고생하는 경우가 참 많다.
redirect 걸리는 것들은 '강력 새로고침' 같은것도 하기 어려워서 ㅠㅠ


swindler - 2018-02-27 18:02
haproxy 구버전에서는 capture.req.uri 형태가 다름.
Copyright © 1999-2020, swindler.

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog