mirror of
https://github.com/darksaid98/ptero-nginx-egg.git
synced 2026-12-03 22:20:59 +00:00
1 file changed
+16
-3
@@ -1,16 +1,16 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 2006;
|
||||||
server_name "";
|
server_name "";
|
||||||
|
|
||||||
#access_log /home/container/naccess.log;
|
#access_log /home/container/naccess.log;
|
||||||
#error_log /home/container/nerror.log error;
|
#error_log /home/container/nerror.log error;
|
||||||
|
|
||||||
root /home/container/webroot;
|
root /home/container/webroot;
|
||||||
index index.html index.htm index.php;
|
index index.php index.html;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?route=$uri&$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /favicon.ico { access_log off; log_not_found off; }
|
location = /favicon.ico { access_log off; log_not_found off; }
|
||||||
@@ -37,6 +37,19 @@ server {
|
|||||||
fastcgi_send_timeout 300;
|
fastcgi_send_timeout 300;
|
||||||
fastcgi_read_timeout 300;
|
fastcgi_read_timeout 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ \.(tpl|cache|htaccess)$ {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /node_modules/ {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /scripts/ {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
deny all;
|
deny all;
|
||||||
|
|||||||
Reference in new issue
Block a user