mirror of
https://github.com/darksaid98/ptero-nginx-egg.git
synced 2026-12-01 14:38:51 +00:00
1 file changed
+16
-3
@@ -1,16 +1,16 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 2006;
|
||||
server_name "";
|
||||
|
||||
#access_log /home/container/naccess.log;
|
||||
#error_log /home/container/nerror.log error;
|
||||
|
||||
root /home/container/webroot;
|
||||
index index.html index.htm index.php;
|
||||
index index.php index.html;
|
||||
charset utf-8;
|
||||
|
||||
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; }
|
||||
@@ -37,6 +37,19 @@ server {
|
||||
fastcgi_send_timeout 300;
|
||||
fastcgi_read_timeout 300;
|
||||
}
|
||||
|
||||
location ~ \.(tpl|cache|htaccess)$ {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ /node_modules/ {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ /scripts/ {
|
||||
return 403;
|
||||
}
|
||||
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
|
||||
Reference in new issue
Block a user