diff --git a/conf/nginx.conf b/conf/nginx.conf index e7aa501a..3ed75560 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -58,7 +58,7 @@ server { } } - location ~ ^(/cloud)(/.+\.php)(/.*)?$ { + location ~ ^(/cloud)(/[^/]+\.php)(/.*)?$ { # note: ~ has precendence over a regular location block include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/local/lib/owncloud/$2;