]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/etc/nginx/inc.conf
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 26 Oct 2017 10:48:06 +0000 (11:48 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 26 Oct 2017 10:48:06 +0000 (11:48 +0100)
www/dbq/etc/nginx/inc.conf [new file with mode: 0644]

diff --git a/www/dbq/etc/nginx/inc.conf b/www/dbq/etc/nginx/inc.conf
new file mode 100644 (file)
index 0000000..6ca8dcf
--- /dev/null
@@ -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;
+}