You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Amar P Patel <am...@omalas.com> on 2004/11/25 03:24:40 UTC
subversion, websvn, and apache2
Hello all!,
I am trying to enable authentication on my repositories. I have multiple
repositories setup and want to give different users access to different
repositories. I am using basic authentication; the logon window pops up
when I try to access the repository via the web browser, but it does not
accept my password. Here are the relevant configuration files:
vim /etc/websvn/svn_deb_conf.inc
----------------------------------------------------------
// please edit /etc/websvn/config.inc
// or use dpkg-reconfigure websvn
$config->parentPath("/home/svnroot/ots");
$config->addRepository("ots", "/home/svnroot/ots");
//.other repositories
$config->setSedPath("/bin");
I am running apache2 as a user svnroot. Here is my apache configuration
file:
User svnroot
<VirtualHost 192.168.1.3:443>
ServerAdmin webmaster@omalas.internal
ServerName svn.omalas.internal
# DocumentRoot /var/www/websvn
SSLEngine on
SSLCertificateFile \
/etc/ssl/certs/svn.omalas.internal.cert
SSLCertificateKeyFile \
/etc/ssl/private/svn.omalas.internal.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog /var/log/apache2/svn.omalas.internal-error.log
CustomLog /var/log/apache2/svn.omalas.internal-access.log common
ServerSignature On
<Location /ots>
SVNPath /home/svnroot/ots
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/apache2/svn-auth-file
Require Valid-user
</Location>
</VirtualHost>
I have setup a user called svnroot as follows: htpasswd /etc/svn-auth-file
-cm svnroot
But when browsing to https://svn.omalas.internal/ots, the logon window pops
up but I cannot login.
Please let me know of anything that I may be overlooking.
Thank you.
Amar