2

I use Apache 2 and mod_dav_svn to serve an SVN repository at https://mysite.example.com/svn/

The repository is on disk on the server at /srv/svn/repo1

It works well.

I now want to allow access to the same repository via a different host name and with different HTTP authentication.

If I add a separate, additional Apache 2 virtual host for the extra host name and mount the same /srv/svn/repo1 under it, will this work? I can't find a definitive answer on whether this is a supported use of mod_dav_svn, and I'm worried I could experience repository corruption if multiple commits happen simultaneously via those two virtual hosts.

David North
  • 762
  • 1
  • 5
  • 12

1 Answers1

2

If I add a separate, additional Apache 2 virtual host for the extra host name and mount the same /srv/svn/repo1 under it, will this work?

Yes

I'm worried I could experience repository corruption if multiple commits happen simultaneously via those two virtual hosts

Don't worry - technically two commits from different vhosts doesn't differ from 2 parallel commits to single host and the latter work always

Lazy Badger
  • 3,067
  • 14
  • 13