From 20b494c3ac90123d30fb7f929fd4dcdd924e936b Mon Sep 17 00:00:00 2001 From: jkaberg Date: Mon, 11 Aug 2014 18:46:39 +0200 Subject: [PATCH] attempting to fix broken static files etc --- conf/nginx.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7f19de9..8cfc883 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -51,13 +51,16 @@ server { alias /usr/local/lib/owncloud/; } - location ~ /owncloud/.*\.php { + location ~ ^/owncloud/(.+?\.php)/? { + fastcgi_split_path_info ^/owncloud/(.+?\.php)(/?.*)$; + set $path_info $fastcgi_path_info; +# try_files $fastcgi_script_name = 404; include fastcgi_params; - fastcgi_split_path_info ^/owncloud(/.*)()$; - fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/local/lib/owncloud/$fastcgi_script_name; + fastcgi_param PATH_INFO $path_info; + fastcgi_param HTTPS on; + fastcgi_param SCRIPT_NAME /owncloud/$fastcgi_script_name; fastcgi_pass unix:/tmp/php-fastcgi.www-data.sock; - client_max_body_size 20M; } location ~ ^/(data|config|\.ht|db_structure\.xml|README) {