From f174ee751397b86d09c5c49f4a07a3099c327e8d Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 29 Jul 2019 21:13:34 +0200 Subject: [PATCH] fix --- conf/nginx.conf | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 36c7467..ee035a8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,18 +1,14 @@ -root /srv/pufferpanel/; -index index.php; - -client_max_body_size 20m; -client_body_timeout 120s; +root /var/www/bookstack/public; +index index.php index.html; location __PATH__/ { - try_files /public/router.php =404; - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; - fastcgi_index router.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /etc/nginx/fastcgi_params; -} + try_files $uri $uri/ /index.php?$query_string; + } -location __PATH__/app/assets { - try_files /app/\$uri =404; + location ~ \.php$ { + fastcgi_index index.php; + try_files $uri =404; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_pass unix:/run/php/php7.0-fpm.sock; }