Traefik的简单反向代理
我目前正在使用Apache作为我的LXD容器的代理,使用以下设置: <VirtualHost *:80> ServerName example.com ProxyRequests off ProxyPass / http://10.0.0.142/ retry=0 ProxyPassReverse / http://10.0.0.142/ ProxyPreserveHost On </VirtualHost> 我想改用traefik。我已经尝试过这种配置: defaultEntryPoints = ["http"] [entryPoints] [entryPoints.http] address = ":80" [backends] [backends.backend1] [backends.backend1.servers.server1] url = "http://10.0.0.142" [frontends] [frontends.frontend1] backend = "backend1" passHostHeader = true [frontends.frontend1.routes.example] rule = "Host:example.com" 这两个相等吗? traefik的配置可以简化吗?(删除不必要的规则) (注意:我不打算使用docker,但我不想这样做。)