diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-09-23 17:57:31 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-09-23 17:57:31 +0200 |
commit | 96d5500b130427195d0d3d4259d03faf83204a56 (patch) | |
tree | 6758e312a24c14a4c6de8a7429065cf76bda364d /nginx-php.conf | |
parent | fc01aa049d89ecb6470fa5c67c2158ffe8c8c5f4 (diff) |
php 5.6: provides nginx configuration
Diffstat (limited to 'nginx-php.conf')
-rw-r--r-- | nginx-php.conf | 14 |
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; +} |