Update default.conf

This commit is contained in:
finnie2006 authored and GitHub committed 2022-10-04 19:19:53 +02:00
1 parent 0b13aa9d7c
commit 168653bda6
1 file changed
+3 -19
+3 -19
View File
@@ -1,27 +1,24 @@
server {
listen 2006;
listen 80;
server_name "";
#access_log /home/container/naccess.log;
#error_log /home/container/nerror.log error;
root /home/container/webroot;
index index.php index.html;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?route=$uri&$args;
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;
sendfile off;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/home/container/tmp/php-fpm.sock;
@@ -37,19 +34,6 @@ 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;