diff options
Diffstat (limited to 'automated/linux/lemp/centos-nginx.conf')
-rw-r--r-- | automated/linux/lemp/centos-nginx.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/automated/linux/lemp/centos-nginx.conf b/automated/linux/lemp/centos-nginx.conf new file mode 100644 index 0000000..ce9a4ae --- /dev/null +++ b/automated/linux/lemp/centos-nginx.conf @@ -0,0 +1,10 @@ +index index.php index.html index.htm; +server_name localhost; +# pass the PHP scripts to FastCGI server listening on the php-fpm socket +location ~ \.php$ { + try_files $uri =404; + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; +} |