roles/nginx: Only use index.php on hosts that need it
Otherwise, use index.html.
This commit is contained in:
parent
bf7accdade
commit
586ad76d6b
@ -31,7 +31,7 @@ server {
|
|||||||
{# will only work if the TLS cert covers the domain + aliases, like example.com and www.example.com #}
|
{# will only work if the TLS cert covers the domain + aliases, like example.com and www.example.com #}
|
||||||
server_name {{ domain_name }} {{ domain_aliases }};
|
server_name {{ domain_name }} {{ domain_aliases }};
|
||||||
|
|
||||||
index index.php index.html;
|
index {% if has_wordpress == True or needs_php == True %}index.php{% else %}index.html{% endif %};
|
||||||
|
|
||||||
access_log /var/log/nginx/{{ domain_name }}-access.log;
|
access_log /var/log/nginx/{{ domain_name }}-access.log;
|
||||||
error_log /var/log/nginx/{{ domain_name }}-error.log;
|
error_log /var/log/nginx/{{ domain_name }}-error.log;
|
||||||
|
Loading…
Reference in New Issue
Block a user