From: Nicolas Boisselier Date: Thu, 26 Oct 2017 10:48:06 +0000 (+0100) Subject: www/dbq/etc/nginx/inc.conf X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f6ba9a36ab832a7e98e66913561703bc0b1292dc;p=nb.git 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; +}