IngressRoute gives 404 on https

Hello,

I've created two IngressRoutes. One for the http entrypoint that redirects to the https entrypoint and one for the https entrypoint. The redirect is working but on the https site I get a 404. But if I remove the redirect from the http configuration I can view the output from the whoami container. Any idea what the problem could be on the https IngressRoute?

What did you expect to see?
The output of the whoami container on https

What did you see instead?
404 page not found

Traefik version
2.3.1

What is your environment & configuration (arguments, toml, provider, platform, ...)?

---
kind: DaemonSet
apiVersion: apps/v1
metadata:
  name: traefik-ingress-controller
  namespace: kube-system
  labels:
    k8s-app: traefik-ingress-lb
spec:
  selector:
    matchLabels:
      k8s-app: traefik-ingress-lb
  template:
    metadata:
      labels:
        k8s-app: traefik-ingress-lb
        name: traefik-ingress-lb
    spec:
      serviceAccountName: traefik-ingress-controller
      terminationGracePeriodSeconds: 60
      containers:
        - image: traefik:v2.3.1
          name: traefik-ingress-lb
          ports:
            - protocol: TCP
              name: http
              containerPort: 80
            - protocol: TCP
              name: https
              containerPort: 443
            - protocol: TCP
              name: admin
              containerPort: 8080
          args:
            - --api.dashboard=true
            - --api.insecure=true
            - --entrypoints.http.address=:80
            - --entrypoints.https.address=:443
            - --entrypoints.https.http.tls
            - --entryPoints.https.forwardedHeaders.insecure=true
            - --entrypoints.https.proxyProtocol.insecure=true
            - --entrypoints.traefik.address=:8080
            - --global.checkNewVersion=true
            - --global.sendAnonymousUsage=true
            - --log.level=DEBUG
            - --accesslog=false
            - --accesslog.fields.defaultmode=keep
            - --accesslog.fields.headers.defaultmode=keep
            - --metrics.prometheus.buckets=0.100000, 0.300000, 1.200000, 5.000000
            - --metrics.prometheus.entryPoint=traefik
            - --metrics.prometheus.addEntryPointsLabels=true
            #- --providers.providersThrottleDuration=2s
            - --providers.file.directory=/etc/traefik
            - --providers.file.watch=true
            - --providers.kubernetescrd=true
            - --providers.kubernetesIngress=true
            - --providers.kubernetesIngress.ingressclass=traefik-cert-manager
            - --serversTransport.insecureSkipVerify=true
            - --serversTransport.maxIdleConnsPerHost=0
            - --ping=true
      volumes:
        - name: config
          configMap:
            name: traefik-ingress-dynamic-configmap
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: whoami-ingress-http-service
  namespace: default
spec:
  entryPoints:
    - http
  routes:
    - match: Host(`www.example.com`)
      kind: Rule
      services:
        - name: noop@internal
          kind: TraefikService
      middlewares:
        - name: redirect-temp-to-https
          namespace: kube-system
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: whoami-ingress-https-service
  namespace: default
spec:
  entryPoints:
    - https
  routes:
    - match: Host(`www.example.com`)
      kind: Rule
      services:
        - name: whoami
          port: 80
      #middlewares:
      #  - name: basic-auth
      #    namespace: kube-system
  tls:
    secretName: cert-www-example-com

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)

│ traefik-ingress-controller-t85zb:time="2020-10-07T11:44:53Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd                                                                                                                                  │
│ traefik-ingress-controller-t85zb:time="2020-10-07T11:44:53Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd                                                                                                                                  │
│ traefik-ingress-controller-7rwmf:time="2020-10-07T11:44:53Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd                                                                                                                                  │
│ traefik-ingress-controller-7rwmf:time="2020-10-07T11:44:53Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd                                                                                                                                  │
│ traefik-ingress-controller-7rwmf:time="2020-10-07T11:44:54Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd                                                                                                                                  │
│ traefik-ingress-controller-t85zb:time="2020-10-07T11:44:54Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd                                                                                                                                  │
│ traefik-ingress-controller-7rwmf:time="2020-10-07T11:44:55Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd

Maybe some more input

---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: redirect-temp-to-https
  namespace: kube-system
spec:
  redirectScheme:
    scheme: https
    permanent: false

Another sample log

traefik-ingress-controller-5x8nk:traefik-ingress-lb 45.12.48.76 - - [08/Oct/2020:17:56:15 +0000] "GET / HTTP/2.0" - - "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0" 3051 "-" "-" 0ms