Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

A 'http-request' rule placed after a 'redirect' rule will still be processed before

$
0
0

Hi,

Getting the below message in haproxy log. could some one suggest me what went wrong.
a ‘http-request’ rule placed after a ‘redirect’ rule will still be processed before.

haproxy version:2.8
My configuration file

global
daemon
maxconn 1000
chroot /var/lib/haproxy
log /dev/log local0
log /dev/log local1 notice
tune.ssl.default-dh-param 2048

defaults
log global
option httplog
mode tcp
retries 3
timeout client 30m
timeout connect 10m
timeout server 30m
timeout check 100s
option forwardfor
option http-server-close
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http

frontend httpOrHttps-in
bind *:80
bind *:443 ssl crt /etc/haproxy/ssl/certs
option forwardfor
http-request set-header X-Forwarded-Proto https if { ssl_fc }
redirect scheme https code 301 if !{ ssl_fc }
mode http
acl host_abc_dev_ui hdr(host) -i hello-dev.com
use_backend abc_dev_server_ui if host_abc_dev_ui

backend abc_dev_server_ui
redirect scheme https if !{ ssl_fc }
mode http
server ui-ip xx.xx.xxx.xxx:8081 check
http-request set-header X-Forwarded-Port 443
http-request add-header X-Forwarded-Proto https

Thanks

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>