Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Simple on NGINX Security
#6
@tested0002 sample config updated to:

Code:
# this blocks direct access to XML files (but sitemap.xml) - they hold all the data
        location ~* \.xml$           { deny all; }
        location = /sitemap.xml { allow all; }

since in original apache .htaccess there is a deny for all xml files i think it's better to stick with that rule.
Reply


Messages In This Thread
Get Simple on NGINX Security - by tested0002 - 2012-03-19, 11:18:17
Get Simple on NGINX Security - by yojoe - 2012-03-19, 12:48:16
Get Simple on NGINX Security - by Zegnåt - 2012-03-19, 15:08:45
Get Simple on NGINX Security - by tested0002 - 2012-03-19, 18:33:21
Get Simple on NGINX Security - by Zegnåt - 2012-03-19, 18:53:23
Get Simple on NGINX Security - by marrco - 2012-03-19, 18:53:38



Users browsing this thread: 1 Guest(s)