title: Configuring WSO2 API Manager to Work With Traefik for HTTPS
body: <p>I am trying to configure Traefik and WSO2 API Manager. Basically, I want to configure Traefik to handle https.</p>
  <pre><code>     labels:
          - &quot;traefik.enable=true&quot;
          - &quot;traefik.http.middlewares.service-am-https.redirectscheme.scheme=https&quot;
          - &quot;traefik.http.routers.service-am-http.entrypoints=web&quot;
          - &quot;traefik.http.routers.service-am-http.rule=Host(`xx.xx.xx`) &amp;&amp; Path(`/apim/admin`)&quot;
          - &quot;traefik.http.routers.service-am-http.middlewares=service-am-https@docker&quot;
          - &quot;traefik.http.routers.service-am.tls=true&quot;
          - &quot;traefik.http.routers.service-am.rule=Host(`xx.xx.xx`) &amp;&amp; Path(`/apim/admin`)&quot;
          - &quot;traefik.http.routers.service-am.entrypoints=web-secure&quot;
          - &quot;traefik.http.services.service-am.loadbalancer.server.port=9443&quot;
  </code></pre>
  <p>I also included this in the <code>deployment.toml</code> file for API Manager.</p>
  <pre><code>[catalina.valves.valve.properties]
  className = &quot;org.apache.catalina.valves.RemoteIpValve&quot;
  internalProxies = &quot;*&quot;
  remoteIpHeader =&quot;x-forwarded-for&quot;
  proxiesHeader=&quot;x-forwarded-by&quot;
  trustedProxies=&quot;*&quot;
  </code></pre>
  <p>When I try to access the service, <code>https://xx.xx.xx/apim/admin</code>, I get this error:</p>
  <pre><code>Bad Request
  This combination of host and port requires TLS.
  </code></pre>
  <p>Traefik is successfully handling the https part but when it comes to WSO2 API Manager, this issue comes up. Any ideas on how to resolve this?</p>