2
0
mirror of https://dev.sum7.eu/sum7/ansible-role-webserver synced 2025-01-24 04:10:30 +01:00
ansible-role-webserver/templates/php.nginx
2020-07-22 01:50:30 +02:00

15 lines
439 B
Nginx Configuration File

index index.html index.htm index.php;
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root:/tmp:/usr/share/pear:/dev/urandom;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
}