diff --git a/nginx_web/nginx.conf b/nginx_web/nginx.conf index 803bd81..e0b39f2 100644 --- a/nginx_web/nginx.conf +++ b/nginx_web/nginx.conf @@ -35,23 +35,26 @@ http { root /data/; + # Friendly URL support location / { try_files $uri $uri/ /index.php?route=$uri&$args; } + # Deny access to some file types and directories location ~ \.(tpl|cache|htaccess)$ { return 403; } - location = /robots.txt { - allow all; - log_not_found off; - access_log off; + location ^~ /node_modules/ { + return 403; + } + + location ^~ /scripts/ { + return 403; } location ~ \.php$ { try_files $uri =404; - fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /tmp/fastcgi-pass.conf;