From f6ba9a36ab832a7e98e66913561703bc0b1292dc Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 26 Oct 2017 11:48:06 +0100 Subject: [PATCH] www/dbq/etc/nginx/inc.conf --- www/dbq/etc/nginx/inc.conf | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 www/dbq/etc/nginx/inc.conf diff --git a/www/dbq/etc/nginx/inc.conf b/www/dbq/etc/nginx/inc.conf new file mode 100644 index 00000000..6ca8dcf5 --- /dev/null +++ b/www/dbq/etc/nginx/inc.conf @@ -0,0 +1,39 @@ +index index.php index.html; + +charset utf-8; + +sendfile off; + +client_max_body_size 100m; + +#--------------------------------------------------------------# +# Ignore +location = /favicon.ico { access_log off; log_not_found off; } +location = /robots.txt { access_log off; log_not_found off; } + +#--------------------------------------------------------------# +# Deny +location ~ /\.ht { deny all; } + +#--------------------------------------------------------------# +# All to index.php +location / { + try_files $uri $uri/ /index.php?$query_string; +} + +#--------------------------------------------------------------# +# FastCGI + +location ~ /index\.php$ { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass php-handler; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_intercept_errors off; + fastcgi_buffer_size 16k; + fastcgi_buffers 4 16k; + + fastcgi_param DBQ_CONF_FILE $document_root/../../../etc/dbq/000-local.php; + fastcgi_param DBQ_PERM 0; +} -- 2.47.3