mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Add some security rules for wordpress
This commit is contained in:
@@ -3,3 +3,9 @@
|
||||
{% block template_try_files %}
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
{% endblock %}
|
||||
|
||||
{% block template_custom_location %}
|
||||
location ~* /(?:uploads|files)/.*\.php$ {
|
||||
deny all;
|
||||
}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user