1
0
Fork 0
forked from exozyme/nginx

Add NC legacy PHP support

This commit is contained in:
Anthony Wang 2021-08-02 10:45:07 -05:00
parent 46841db7ed
commit b552d5aab2
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -125,6 +125,9 @@ server {
# then Nginx will encounter an infinite rewriting loop when it prepends `/index.php`
# to the URI, resulting in a HTTP 500 error response.
location ~ \.php(?:$|/) {
# Required for legacy support
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
set $path_info $fastcgi_path_info;