Skip to content

Commit 14ce82d

Browse files
committed
haproxy: add X-Forwarded-Port header
1 parent f1e34d4 commit 14ce82d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

etc/haproxy/haproxy.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ frontend frontend_http_reverse_proxy
4949

5050
# forwarded headers
5151
option forwardfor
52+
http-request set-header X-Forwarded-Port %[dst_port]
5253
http-request set-header X-Forwarded-Proto https if { ssl_fc }
5354

5455
# handle haproxy statistics page

0 commit comments

Comments
 (0)