私は現在、この種の設定を使用して、LXDコンテナのプロキシとしてApacheを使用しています。
<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"
- これら2つは同等ですか?
- traefik構成を簡略化できますか?(不要なルールを削除)
(注:dockerを使用する予定はないので、使用しないことをお勧めします。)