LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2013, 11:49 AM   #1
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Question Cannot access SVN repo via HTTP


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.
 
Old 08-19-2013, 05:23 PM   #2
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
I'd like to note that it doesn't seem that whatever renders the SVN structure doesn't seem to be working. I see all of the SVN config files, not the tree structure I am apparently supposed to see.
 
Old 08-21-2013, 03:20 PM   #3
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Found it.

You cannot use a "Directory" directive here, being as you're not supposed to be accessing the SVN directory and instead have DAV handle all of that. Instead, use the "Location" directive as follows:

Code:
<Location /svn>
        Allow                   from all

        DAV                     svn
        SVNPath                 /home/apache/unsec/svn

        AuthType                Basic
        AuthName                "Subversion Repository"
        AuthUserFile            /etc/apache2/SvnIndex.pwd
        Require                 valid-user
</Location>
 
  


Reply

Tags
apache, debian, mod_rewrite, newbie, svn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
svn import error says svn: Repository moved permanently to 'http://192.168.1.5/deva/' dev@linuxquestion# Linux - Server 0 04-15-2012 03:34 AM
[SOLVED] Trying to split a large SVN repo into one git repo. Ian John Locke II Linux - Software 1 01-30-2012 09:19 AM
svn repo creation in rhel 5 mlnm Linux - Newbie 1 11-02-2011 05:17 AM
Unable to access repo with SVN+HTTPS. unreal128 Linux - Server 5 07-13-2011 12:33 PM
Error during SVN Repo Access through EClipse? your_shadow03 Linux - Server 1 08-27-2008 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration