Reverse proxy for external apache server

hello,
I will use traefik with my 3 apache sever on same server but not in container.
3 Apache vhost in ssl with certicate.

I want serve whit passtrough whit 3 dynamics file provider, my first:



tcp:
  routers:
    apache1:
#      entrypoints:
#        - websecure
#        - web
#      rule: "HostSNI(`apa1.exemple.com`)"
      rule: "Host(`apa1.exemple.com`)"
      tls:
        passthrough: true
      service: apache1
  services:
    apache1:
      loadBalancer:
        servers:
          - address: "52.200.86.15:7443"
#          - url: "https://52.200.86.15:7443"
#        passHostHeader: true

passHostHeader only for http. with service.tcp idem
My servers are on ssl port 7443

The host (apa1.exemple.com) don't go to my apache vhost.
error :
PORT IS NOT REACH -> 80 BUT ASK 7443

log traefik :

level=debug msg="Handling connection from BROWSERIP:22669" 
level=debug msg="Error while setting deadline: set tcp 172.25.0.4:48524: use of closed network connection"

log on apache :

apa1.exemple.com:80 172.25.0.4 - - [02/Nov/2021:18:24:43 +0100] "\x16\x03\x01\x02" 400 0 "-" "-"

wrong configuration in my network, it's ok

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.