title: 404 error and "to many redirects" with traefik and nextcloud
body: <p>Im using Traefik for reverse proxy some services. But something isn't working as expected. I think that it might be a port conflict. When using ports example <code>192.168.1.10:8080</code> I'm redirected to Traefik dashboard. But when visiting <code>192.168.1.10</code>, I would like to end up at Nextcloud service, but instead I get a 404 error.</p>
  
  <p>This is my docker-compose.yml file:</p>
  
  <pre><code>    version: "3.6"
      services:
  
      ### TRAEFIK REVERSE PROXY WITH LETTS ECRYPT FOR DOCKER MEDIA SERVER ###
        traefik:
          hostname: traefik
          image: traefik:latest
          container_name: traefik
          restart: always
          domainname: ${DOMAINNAME}
          networks:
            - default
            - traefik_proxy
          ports:
            - "80:80"
            - "443:443"
      #      - "8080:8080"
          environment:
            - CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
            - CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY}
          labels:
            - "traefik.enable=true"
            - "traefik.backend=traefik"
            - "traefik.frontend.rule=Host:traefik.${DOMAINNAME}"  
            - "traefik.port=80"
            - "traefik.docker.network=traefik_proxy"
          volumes:
            - /var/run/docker.sock:/var/run/docker.sock:ro
            - ${USERDIR}/docker/traefik:/etc/traefik
            - ${USERDIR}/docker/shared:/shared
  
      ### NextCloud – Your Own Cloud Storage ### with redis https://github.com/nextcloud/docker/issues/140
        nextcloud:
          container_name: nextcloud
          depends_on:
            - traefik
            - mariadb
            - redis
          restart: always
          image: linuxserver/nextcloud
          volumes:
            - ${USERDIR}/docker/nextcloud:/config
            - ${USERDIR}/shared_data:/data # Path to data you want to share/sync
            - ${USERDIR}/docker/shared:/shared
          ports:
             - "9059:443"
          environment:
            - PUID=${PUID}
            - PGID=${PGID}
          networks:
            - traefik_proxy
            - default
          labels:
            - "traefik.enable=true"
            - "traefik.backend=nextcloud"
            - "traefik.frontend.rule=Host:nextcloud.${DOMAINNAME}"
            - "traefik.port=80"
            - "traefik.protocol=https"
            - "traefik.docker.network=traefik_proxy"
  </code></pre>
  
  <p>This is my Traefik.toml file:</p>
  
  <pre><code>    #debug = true
      logLevel = "DEBUG" #DEBUG, INFO, WARN, ERROR, FATAL, PANIC
      InsecureSkipVerify = true
      defaultEntryPoints = ["https", "http"]
  
      # WEB interface of Traefik - it will show web page with overview of frontend and backend configurations
      [web]
      address = ":8080"
        [web.auth.basic]
        usersFile = "/shared/.htpasswd"
  
      # Force HTTPS
      [entryPoints]
        [entryPoints.http]
        address = ":80"
          [entryPoints.http.redirect]
          entryPoint = "https"
        [entryPoints.https]
        address = ":443"
          [entryPoints.https.tls]
  </code></pre>
  
  <p>The expected result is hitting nextcloud when visiting <code>192.168.1.10</code>.</p>