Update default.conf

This commit is contained in:
finnie2006 authored and GitHub committed 2022-10-04 19:17:31 +02:00
1 parent 6721f7049b
commit 380b8cc6f6
1 file changed
+16 -3
+16 -3
View File
@@ -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;