27 lines
916 B
Django/Jinja
27 lines
916 B
Django/Jinja
{{ ansible_header | comment }}
|
|
|
|
location ~ .+\.php {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
if (!-e $document_root$fastcgi_script_name) {
|
|
return 404;
|
|
}
|
|
fastcgi_buffer_size 128k;
|
|
fastcgi_buffers 4 256k;
|
|
fastcgi_busy_buffers_size 256k;
|
|
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
|
fastcgi_index index.php;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
location ~ ^/php_(ping|status)$ {
|
|
access_log off;
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
root /usr/share/nginx/html;
|
|
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
|
include fastcgi_params;
|
|
}
|