summaryrefslogtreecommitdiffstats
path: root/nginx-php.conf
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-23 08:33:33 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-23 08:33:33 +0200
commitc230ad20123b11af6c2c111d3f6759c322f6715d (patch)
treeda6f22218901bafa8e49eda5a126a0df10d2e3e4 /nginx-php.conf
PHP 7.1.0beta1 as base package (in remi-php71)
Diffstat (limited to 'nginx-php.conf')
-rw-r--r--nginx-php.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/nginx-php.conf b/nginx-php.conf
new file mode 100644
index 0000000..9b01536
--- /dev/null
+++ b/nginx-php.conf
@@ -0,0 +1,14 @@
+# pass the PHP scripts to FastCGI server
+#
+# See conf.d/php-fpm.conf for socket configuration
+#
+index index.php index.html index.htm;
+
+location ~ \.php$ {
+ try_files $uri =404;
+ fastcgi_intercept_errors on;
+ fastcgi_index index.php;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_pass php-fpm;
+}