Deny access to draft posts in nginx

This commit is contained in:
Wesley Moore 2010-07-09 08:29:18 +10:00
parent 11d695ffe7
commit 9398ffc5f6

View file

@ -90,6 +90,11 @@ http {
index index.html index.xml;
}
# deny access to draft posts
location ~ ^/drafts/ {
deny all;
}
# Rewrites
rewrite ^/qr$ / permanent;