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

Haproxy custom error page does not always work

$
0
0

Hello
In order to have customized error pages, I added some config into haproxy:
http-errors defaulterrorpages
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 fe_dmz
bind *:80
bind [::]:80
bind *:443 ssl crt /etc/haproxy/tls-certs/ alpn h2,http/1.1
bind [::]:443 ssl crt /etc/haproxy/tls-certs/ alpn h2,http/1.1
mode http
option httplog

    errorfiles defaulterrorpages


There is a backedn returns 403, but sometimes the customized page shows, sometimes the default 403 page appears.
Then for some reason we modified our 403 page, haproxy returns 3 versions of 403 page now: the default one, the page before modification and the page after modification.
It seems that there is a cache somewhere? Is it a default behavior of Haproxy?
Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



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