From cf27ba1a3b8bb5b550100b834f7e28be9cf6c883 Mon Sep 17 00:00:00 2001 From: likeitneverwentaway Date: Mon, 11 Jul 2016 18:27:25 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 599c1bd..76bad6c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,11 +5,11 @@ location YNH_WWW_PATH { # Example PHP configuration (remove if not used) index index.php; - rewrite ^/(/bbs/img/.*)$ /$1 break; - rewrite ^/(/bbs/js/.*)$ /$1 break; - rewrite ^/(/bbs/style/.*)$ /$1 break; - rewrite ^/bbs/$ /bbs/index.php last; - rewrite ^/bbs/(admin|authors|authorslist|login|logout|metadata|search|series|serieslist|tags|tagslist|titles|titleslist|opds)/.*$ /bbs/index.php last; + rewrite ^/(YNH_WWW_PATH/img/.*)$ /$1 break; + rewrite ^/(YNH_WWW_PATH/js/.*)$ /$1 break; + rewrite ^/(YNH_WWW_PATH/style/.*)$ /$1 break; + rewrite ^YNH_WWW_PATH/$ YNH_WWW_PATH/index.php last; + rewrite ^YNH_WWW_PATH/(admin|authors|authorslist|login|logout|metadata|search|series|serieslist|tags|tagslist|titles|titleslist|opds)/.*$ /bbs/index.php last; # Common parameter to increase upload size limit in conjuction with dedicated php-fpm file #client_max_body_size 50M;