Nginx nextcloud23 Webfinger

Discussion in 'Installation/Configuration' started by planet_fox, Feb 1, 2022.

  1. planet_fox

    planet_fox Member HowtoForge Supporter

    Hi
    I become on the Nextcloud 23 Security Check this error Message, any other Admin have a Solution for ISPConfig3 .

    This I have in my Nginx directive for the next cloud web (its only the part of well-known). The Nextclound running not in a subfolder like /nextcloud

    Code:
      location ^~ /.well-known {
    # The following 2 rules are only needed for the user_webfinger app.
    # Uncomment it if you're planning to use this app.
    rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
    rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
    rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
    rewrite ^/.well-known/nodeinfo  /public.php?service=nodeinfo  last;
    
    # The following rule is only needed for the Social app.
    # Uncomment it if you're planning to use this app.
    rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
    
    location = /.well-known/carddav {
        return 301 $scheme://$host:$server_port/remote.php/dav;
    }
    location = /.well-known/caldav {
        return 301 $scheme://$host:$server_port/remote.php/dav;
    }
        # according to the documentation these two lines are not necessary, but version 21.0.0 will produce warnings in the overview setup check
    
         location = /.well-known/webfinger {
              return 301 /index.php$uri;
            }
        }
    location = /.well-known/nodeinfo {
              return 301 /index.php$uri;
            }    
    location ~ /.well-known/acme-challenge {
        allow all;
    }
    
     

Share This Page