Untitled
unknown
nginx
2 years ago
982 B
2
Indexable
Never
location ^~ /.well-known { # The rules in this block are an adaptation of the rules # in the Nextcloud .htaccess that concern /.well-known. try_files $uri $uri/ =404; location = /.well-known/carddav { return 301 $scheme://$host:$server_port/remote.php/dav/; } #https://$host/remote.php/dav/ location = /.well-known/caldav { return 301 $scheme://$host:$server_port/remote.php/dav/; } rewrite ^/.well-known/webfinger /public.php?service=webfinger last; rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; location /.well-known/acme-challenge { try_files $uri $uri/ =404; } location /.well-known/pki-validation { try_files $uri $uri/ =404; } # Let Nextcloud's API for /.well-known URIs handle all other # requests by passing them to the front-end controller. return 301 $scheme://$host:$server_port/index.php$request_uri; #https://$host/index.php$request_uri }