mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39:54 +00:00
Deny access to draft posts in nginx
This commit is contained in:
parent
11d695ffe7
commit
9398ffc5f6
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ http {
|
||||||
index index.html index.xml;
|
index index.html index.xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# deny access to draft posts
|
||||||
|
location ~ ^/drafts/ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
# Rewrites
|
# Rewrites
|
||||||
rewrite ^/qr$ / permanent;
|
rewrite ^/qr$ / permanent;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue