如何申请登录?

时间:2010-11-27 09:45:36

标签: svn debian websvn

我在我的debian服务器上安装了SvnServe,它适用于带有密码保护文件夹的Visual Studio。

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

我如何使用身份验证?

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

的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();
?>

2 个答案:

答案 0 :(得分:2)

默认情况下始终提供通用访问。

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

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

    请参阅有关已详细说明解决方案的serverfault上的以下答案。

答案 1 :(得分:0)

Subversion存储库可以由 SVNServe Apache 提供服务。对于细粒度的权限模式,您可以按照pyfunc提到的这些instructions进行操作。

相关问题