diff --git a/admin_manual/installation/nginx_owncloud_9x.rst b/admin_manual/installation/nginx_owncloud_9x.rst index b97c417df..9ea1aa581 100644 --- a/admin_manual/installation/nginx_owncloud_9x.rst +++ b/admin_manual/installation/nginx_owncloud_9x.rst @@ -65,12 +65,14 @@ your nginx installation. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last; #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json # last; - - location = /.well-known/carddav { return 301 - $scheme://$host/remote.php/dav; } - location = /.well-known/caldav { return 301 - $scheme://$host/remote.php/dav; } - + + location = /.well-known/carddav { + return 301 $scheme://$host/remote.php/dav; + } + location = /.well-known/caldav { + return 301 $scheme://$host/remote.php/dav; + } + location /.well-known/acme-challenge { } # set max upload size @@ -97,12 +99,10 @@ your nginx installation. location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { deny all; } - - location ~ - ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater - /.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { - fastcgi_split_path_info ^(.+\.php)(/.*)$; + + location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { include fastcgi_params; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on; @@ -201,12 +201,14 @@ your nginx installation. # last; #rewrite ^/.well-known/host-meta.json # /nextcloud/public.php?service=host-meta-json last; - - location = /.well-known/carddav { return 301 - $scheme://$host/nextcloud/remote.php/dav; } - location = /.well-known/caldav { return 301 - $scheme://$host/nextcloud/remote.php/dav; } - + + location = /.well-known/carddav { + return 301 $scheme://$host/nextcloud/remote.php/dav; + } + location = /.well-known/caldav { + return 301 $scheme://$host/nextcloud/remote.php/dav; + } + location /.well-known/acme-challenge { } location ^~ /nextcloud { @@ -236,12 +238,10 @@ your nginx installation. location ~ ^/nextcloud/(?:\.|autotest|occ|issue|indie|db_|console) { deny all; } - - location ~ - ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]| - updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { - fastcgi_split_path_info ^(.+\.php)(/.*)$; + + location ~ ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { include fastcgi_params; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTPS on;