From de5d1c50153d8a52b79418d93674df31d1a5d233 Mon Sep 17 00:00:00 2001 From: Joshua Ruehlig Date: Tue, 5 Mar 2019 11:04:30 -0800 Subject: [PATCH] Combine regex for ocs-provider and ocm-provider Combine regex for ocs-provider and ocm-provider --- admin_manual/installation/nginx.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin_manual/installation/nginx.rst b/admin_manual/installation/nginx.rst index d1295e6fa..7b4eb4101 100644 --- a/admin_manual/installation/nginx.rst +++ b/admin_manual/installation/nginx.rst @@ -130,7 +130,7 @@ webroot of your nginx installation. In this example it is deny all; } - location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|ocm-provider\/.+)\.php(?:$|\/) { + location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) { fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; @@ -144,7 +144,7 @@ webroot of your nginx installation. In this example it is fastcgi_request_buffering off; } - location ~ ^\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) { + location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) { try_files $uri/ =404; index index.php; } @@ -291,7 +291,7 @@ your nginx installation. deny all; } - location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|ocm-provider\/.+)\.php(?:$|\/) { + location ~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) { fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; @@ -305,7 +305,7 @@ your nginx installation. fastcgi_request_buffering off; } - location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) { + location ~ ^\/nextcloud\/(?:updater|oc[ms]-provider)(?:$|\/) { try_files $uri/ =404; index index.php; }