Saturday May 18

Key Concepts

Subversion in Apache

Subversion in Apache

Attention: open in a new window. PDFPrintE-mail
AddThis Social Bookmark Button

If you are using you own preconfigured Apache and you want to setup your svn repository you can proceed the following way.

In your httpd.conf file insert the following line

# Subversion
Include "conf/extra/subversion.conf"

Then create the subversion.conf file

<Location /svn>
  DAV svn
  SVNPath /usr/local/subversion/repos
  <LimitExcept GET PROPFIND OPTIONS REPORT>
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/svn-auth-file
    Require valid-user
  </LimitExcept>
</Location>

 

Troubleshooting

Error 175011 (Repository has been moved)

If you're having this problem connecting your SVN client to an HTTP-protocol SVN server (e.g. VisualSVN, CollabNet Server, ViewVC), and you're running your clients behind an authenticating transparent proxy (e.g. as on many corporate networks), make sure you have configured the "servers" file correctly for your client for the proxy authentication to succeed or to bypass the proxy!

We particularly encountered this when using an SvnKit client, as Hudson's Subversion plugin implementation. SvnKit does NOT obey the JVM args for "http.noProxyHosts". To exclude a site from being passed through the proxy it must be configured in the Subversion "servers" file instead under the "http-proxy-exceptions" option.

See section on Http proxy setup in: http://svnkit.com/kb/user-guide-config-settings.html

If you have any remark or questions feel free to put a comment.If you enjoyed this tutorial and want to promote it don't hesitate to click on

Subversion related articles 

Other related articles

Tags: client, file, proxy, subversion, you're, configured, servers, svnkit, (e.g

Add comment


Security code
Refresh

Java Tutorial on Facebook