From 9398ffc5f6855b4ec8fb64f9aef5c22cf03f703a Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Fri, 9 Jul 2010 08:29:18 +1000 Subject: [PATCH] Deny access to draft posts in nginx --- etc/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/nginx.conf b/etc/nginx.conf index 9a51249..5220462 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -90,6 +90,11 @@ http { index index.html index.xml; } + # deny access to draft posts + location ~ ^/drafts/ { + deny all; + } + # Rewrites rewrite ^/qr$ / permanent;