Guest User

Untitled

a guest
Apr 21st, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. location = /robots.txt { access_log off; log_not_found off; }
  2. location = /favicon.ico { access_log off; log_not_found off; expires 30d; }
  3. location ~ /\. { access_log off; log_not_found off; deny all; }
  4. location ~ ~$ { access_log off; log_not_found off; deny all; }
  5. location ~ /\.git { access_log off; log_not_found off; deny all; }
  6. # for security see https://community.centminmod.com/posts/17234/
  7. location ~* \.(bak|php~|php#|php.save|php.swp|php.swo)$ { return 444; }
Advertisement
Add Comment
Please, Sign In to add comment