最近装了dokuwiki,需要在nginx上做权限限制。
apache有现成的,nginx需要在conf文件里屏蔽4个目录的访问权限。如下:
location ~ /(data|conf|bin|inc)/ {
deny all;
}
nginx官网:https://www.nginx.com/resources/wiki/start/topics/recipes/dokuwiki/
最近装了dokuwiki,需要在nginx上做权限限制。
apache有现成的,nginx需要在conf文件里屏蔽4个目录的访问权限。如下:
location ~ /(data|conf|bin|inc)/ {
deny all;
}
nginx官网:https://www.nginx.com/resources/wiki/start/topics/recipes/dokuwiki/