mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:30:12 +01:00
updated nginx config
This commit is contained in:
parent
b03bb23f81
commit
8bde6d145a
@ -13,6 +13,7 @@ server {
|
||||
|
||||
location / {
|
||||
index index.php index.html;
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
@ -23,6 +24,8 @@ server {
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
|
Loading…
Reference in New Issue
Block a user