mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-20 03:29:01 +07:00
Add some security rules for wordpress
This commit is contained in:
1 parent
a2e6e98436
commit
8789bd2c9c
1 file changed
+6
@@ -3,3 +3,9 @@
|
|||||||
{% block template_try_files %}
|
{% block template_try_files %}
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block template_custom_location %}
|
||||||
|
location ~* /(?:uploads|files)/.*\.php$ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
{% endblock %}
|
||||||
Reference in new issue
Block a user