vhost_protect-files.j2 310 B

123456789101112131415
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. #
  6. # Protect hidden files and directories
  7. #
  8. location ~* (?:^|/)\.(?!well-known) {
  9. deny all;
  10. }
  11. location ~* (?:\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
  12. deny all;
  13. }