Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit 34e2d09

Browse files
committed
nginx config: rewrite for config legacy support
see: nextcloud/documentation#2197 (comment)
1 parent a58ffb9 commit 34e2d09

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nginx/nextcloud.conf.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ server {
121121
# then Nginx will encounter an infinite rewriting loop when it prepends `/index.php`
122122
# to the URI, resulting in a HTTP 500 error response.
123123
location ~ \.php(?:$|/) {
124+
# Required for legacy support, see
125+
# https://github.com/nextcloud/documentation/pull/2197#issuecomment-721432337
126+
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
124127

125128
set $cors '';
126129
if ($http_origin ~ '$ALLOWED_CORS_ORIGINS') {

0 commit comments

Comments
 (0)