Can not access SVN by host name (only by IP)

Hi,

I have the following issue: I can not access our SVN repository if I am using the hostname defined for it (it works only through the IP).

On the DNS server it is defined that svn.idi.local should point to 192.168.2.211/svn.

On the SVN server I have the following files:

  • /etc/apache2/sites-available/subversion
<VirtualHost *:80>
    ServerName svn.idi.local
    <Location /svn>
        DAV svn
        SVNParentPath /srv/svn
        SVNListParentPath On
        AuthType Basic
        AuthName "IDI SVN  Authentication"
        AuthBasicProvider crowd
        CrowdAppName apache
        CrowdAppPassword apache
        CrowdURL http://localhost:8095/crowd/
        AuthzSVNCrowdAccessFile /etc/subversion/dav_svn.authz
        Require valid-user
    </Location>
</VirtualHost>
  • /etc/apache2/mods-available/dav_svn.conf
<Location /svn>
        DAV svn
        SVNParentPath /srv/svn/
        SVNListParentPath On
        AuthType Basic
        AuthName "Crowd Authentication"
        AuthBasicProvider crowd
        CrowdAppName apache
        CrowdAppPassword apache
        CrowdURL http://localhost:8095/crowd/
        AuthzSVNCrowdAccessFile /etc/subversion/dav_svn.authz
        Require valid-user
</Location>

I have also set up the dav_svn.authnz file.

My problem is that if I use 192.168.2.211/svn/src, I have access.

If I use svn.idi.local/src, I have no access (file not found on server). I do not know if the issue is on the SVN server or on the DNS server.

Pinging svn.idi.local shows me the correct address (192.168.2.211).

Any suggestions?

1 answer

1 accepted

This widget could not be displayed.

Found the issue: missing / in SVNParentPath. Now it works.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

248 views 14 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you