我有以下内容haproxy.cfg
:
global
stats socket /var/run/api.sock user haproxy group haproxy mode 660 level admin expose-fd listeners
log stdout format raw local0 info
defaults
mode http
timeout client 10s
timeout connect 5s
timeout server 10s
timeout http-request 10s
log global
frontend stats
bind *:8404
stats enable
stats uri /
stats refresh 10s
frontend myfrontend
bind :80
use_backend infra-jaeger if { path /infra/jaeger } || { path_beg /infra/jaeger/ }
backend infra-jaeger
http-request replace-path /infra/jaeger(/)?(.*) /\2
server s1 host.docker.internal:8090 check
这似乎有效(jaeger 页面加载),但是所有页面资源都无法加载,因为它们仍在尝试命中/static/jaeger/resource
(例如)插入/infra/jaeger/static/jaeger/resource
:
有什么方法可以让它工作吗?