Can't get error and chain middleware to work together

In this config, when I load the subdomain in question "demo2" I get the error "gateway timed out" Can someone review my config and tell me what i am doing wrong. yes the service and error page work.

[http]

  [http.routers]

    [http.routers.demo2]
      entryPoints = ["web"]
      rule = "Host(`demo2.fr.com`)"
      middlewares = ["chain_demo2"]
      service = "demo2"

    [http.routers.demo2_secure]
			entryPoints = ["websecure"]
			rule = "Host(`demo2.fr.com`)"
			service = "demo2"

        [http.routers.demo2_secure.tls]
                #certResolver = "myResolver"
                passthrough = true
                options = "demo2_options"
                [[http.routers.demo2_secure.tls.domains]]
                main = "fr.com"
                sans = ["*.fr.com"]

  [http.middlewares]
        
        [http.middlewares.chain_demo2.chain]
            middlewares = ["redirect_demo2", "errorpage_demo2"]
   
        [http.middlewares.redirect_demo2.redirectScheme]
            scheme = "https"
            port = "443"
            permanent = true

        [http.middlewares.errorpage_demo2.errors]
            status = ["500-599"]
            service = "errordemo2"
            query = "/errorpage.php"                     
    
  [http.services]
    [http.services.errordemo2]
      [http.services.errordemo2.loadBalancer]
        [[http.services.errordemo2.loadBalancer.servers]]
          url = "https://127.0.0.1:81"

    [http.services.demo2]
    [http.services.demo2.loadBalancer]
        [[http.services.demo2.loadBalancer.servers]]
            url = "http://10.138.74.153"


[tls]

  [[tls.certificates]]
    certFile = "/etc/traefik/fullchain.pem"
    keyFile = "/etc/traefik/privkey.pem"

  [tls.options]
    [tls.options.demo2_options]
      minVersion = "VersionTLS12"
      cipherSuites = [
      "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", 
      "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
      "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
      "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
      "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
      ]