diff options
author | Remi Collet <remi@remirepo.net> | 2022-09-02 08:13:23 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-09-02 08:13:23 +0200 |
commit | b8a8e0dcae66482c106ba134f3f2a9fc2bc0b163 (patch) | |
tree | b042ddba69a66fb60ba4491dcf32873bcbe9c8ec /nginx-php.conf |
duplicate 8.1
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; +} |