Beginning-Ansible-Concepts-.../chapter12/roles/webserver/templates/nginx-default.j2

24 lines
377 B
Text
Raw Normal View History

2022-03-21 18:17:54 +01:00
server {
listen {{ http_port }} default_server;
root /var/www/html;
server_name _;
{% if status_url is defined -%}
location /{{ status_url | default('status') }} {
stub_status on;
}
{%- endif %}
index index.php index.html index.htm;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php-fpm.sock;
}
}