Skip to content

Commit bc23541

Browse files
ChristophWurstbackportbot[bot]
authored andcommitted
Fix PHP's rewrite rule in NGINX subdir example
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent cfecf20 commit bc23541

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)