I have a little problem with my haproxy config. I would like that if the URL : http://myserver.com/style/ is called always redirects to another backend. Here it should be no matter what is called it should always be forwarded everything that concerns the folder /style/.
My config
frontend ft_web
bind *:80
default_backend bk_web
acl url_style path_beg -i /style
use_backend web_style if url_style
reqadd X-Forwarded-Proto:\ http
backend bk_web
server jenkins1 10.100.100.5:8080 check
server jenkins2 10.100.100.6:8080 check backup
backend web_style
server web1_stlye 10.0.0.5:80 check
Aucun commentaire:
Enregistrer un commentaire