Hello, I'm having trouble setting up an SVN repository with Apache2. I have a custom config using NTLM authentication and SSL, but I was having no luck, so I switched to plain ol' HTTP, port 80, with basic auth to see if I could simplify things and more quickly get to the bottom of my issue. Here's my current config:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/apache/unsec
<Directory />
Options FollowSymLinks Indexes
AllowOverride None
</Directory>
<Directory /svn>
Allow from all
DAV svn
SVNPath /home/apache/unsec/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/SvnIndex.pwd
Require valid-user
</Directory>
# <Directory /var/www/>
# Options Indexes FollowSymLinks MultiViews
# AllowOverride None
# Order allow,deny
# allow from all
# </Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
The permissions for all files and folders within /home/apache are 0777 for the time being. My original directory, using SSL is /home/apache. I've moved my Document Root for the non-SSL Virtual Host into /home/apache/unsec. Inside the unsec directory, I have a newly-created svn repo (created with svnadmin create ./svn). I have the SVNPath set (I believe this should not be SVNParentPath, but I have tried both to be sure, to no avail) as you can see. The authentication seems to be working because it prompts me for a username and password both in the web browser and using an "svn list" command, but afterwards in both Tortise and the "svn" client on the server and on my Windows workstation, I get the error:
Code:
root@PSIQADEV:/home/sean# svn list http://psiqadev/svn
Redirecting to URL 'http://psiqadev/svn':
Redirecting to URL 'http://psiqadev/svn':
svn: E195019: Redirect cycle detected for URL 'http://psiqadev/svn'
root@PSIQADEV:/home/sean#
I was told this is a mod_rewrite issue, however I cannot find any Rewrite declarations in any config. Also, I am presented with the directory when I view this through the web browser, so I know Apache can access it. I can also traverse the directories and open the files in the repo from the browser.
I'm not sure what I've done wrong, or any steps I've missed. The past few weeks I've been on and off with setting up this SVN server from scratch! I have no experience with SVN, so please let me know if there's something I need to do with the DB or whatnot in order to have SVN clients access the repo! What I've read seems pretty complicated and seems to be more about tweaking (possibly?) I can't discern what is needed and what is best practice, which I'm not necessarily looking to do for the time being.
Any help would be greatly appreciated! Thank you.