ansible-nginx/templates/etc/nginx/sites-available/_wordpress.j2

12 lines
222 B
Django/Jinja

{% extends "_php.j2" %}
{% block template_try_files %}
try_files $uri $uri/ /index.php?$args;
{% endblock %}
{% block template_custom_location %}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
{% endblock %}