Skip to content

Commit f0b48f0

Browse files
authored
Merge pull request #7891 from nextcloud/backport/7417/stable20
[stable20] [stable21] Fix PHP's rewrite rule in NGINX subdir example
2 parents cfecf20 + bc23541 commit f0b48f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

admin_manual/installation/nginx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ The configuration differs from the "Nextcloud in webroot" configuration above in
314314
# `/nextcloud/index.php` to the URI, resulting in a HTTP 500 error response.
315315
location ~ \.php(?:$|/) {
316316
# Required for legacy support
317-
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /nextcloud/index.php$request_uri;
317+
rewrite ^/nextcloud/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /nextcloud/index.php$request_uri;
318318
319319
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
320320
set $path_info $fastcgi_path_info;

0 commit comments

Comments
 (0)