diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 91ebf44..5be439b 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -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;