0

我在我的 debian 服务器上安装了 SvnServe,它与 Visual Studio 配合得很好,带有密码保护的文件夹。

我已经安装了 websvn,天哪!我的颠覆目录都可以从http://myserver/websvn访问,无需密码。

我如何使用身份验证?

编辑:更多信息... websvn 文件夹的 Debian 版本:

apache.conf

# Configuration for websvn using php4.

Alias /websvn /usr/share/websvn

<Directory /usr/share/websvn>
  DirectoryIndex index.php
  Options FollowSymLinks
  Order allow,deny
  Allow from all
  <IfModule mod_php4.c>
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
  </IfModule>
</Directory>

svn_deb_conf.inc

<?php
// please edit /etc/websvn/config.php
// or use dpkg-reconfigure websvn
$config->parentPath("/var/subversion/");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();
?>
4

2 回答 2

2

默认设置始终提供通用访问。

  1. WebSVN 目录下的配置文件 include/config.inc 中有一个关于安全的部分。在那里设置安全和控制。

  2. 另一种方法是限制 httpd.conf 和 svn.authz 中的权限。

    请参阅以下关于 serverfault 的答案,该答案已经详细说明了解决方案。

于 2010-11-27T09:56:09.707 回答
0

Subversion repositories can by served by SVNServe or Apache. For a fine grained permission schema, you might follow these instructions as mentioned by pyfunc.

于 2010-11-27T15:28:15.127 回答