diff --git a/conf/nginx.conf b/conf/nginx.conf index cfdefca..95fae2c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,9 +9,15 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } + rewrite ^/(__PATH__/img/.*)$ /$1 break; + rewrite ^/(__PATH__/js/.*)$ /$1 break; + rewrite ^/(__PATH__/style/.*)$ /$1 break; + rewrite ^/__PATH__/$ /__PATH__/index.php last; + rewrite ^/__PATH__/(admin/authors|authorslist|login|logout|metadata|search|series|serieslist|tags|tagslist|titles|titleslist|opds)/.*$ /__PATH__/index.php last; + index index.php; - try_files $uri $uri/ index.php; + #try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;