gpt4 book ai didi

svn - 如何阻止访问我的网络服务器上的 .svn/entries?

转载 作者:行者123 更新时间:2023-12-04 15:13:36 26 4
gpt4 key购买 nike

我设置了一个 NGINX 网络服务器并使用 svn 来管理项目文件夹。 Nessus 发现了弱点:

Configure permissions for the affected
web server to deny access to the
'.svn' directory.



如何阻止访问 .svn目录?看来 svn export是在网络服务器上结账的更佳方式,但我更容易使用 svn up .

最佳答案

最后我找到了在 nginx 中制作它的正确方法。在 server {} 定义中将此行添加到 nginx.conf:

    location ~ /.svn/ {
deny all;
}

就这样!

关于svn - 如何阻止访问我的网络服务器上的 .svn/entries?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4315112/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com