Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3283

Add a lightweight --virtual-host feature to svnserve

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 1.8.0
    • svnserve
    • None

    Description

      Quick idea: super-lightweight virtual host support for svnserve.
      
      Currently, subversion/svnserve/serve.c(find_repos) just skips over the
      given hostname.
      
      Proposal: if you run
      
      $ svnserve -r /svn-servers --virtual-host
      
      then svn://my.server.org/some/repo looks for a repo at
      /svn-servers/my.server.org/some/repo.  You perhaps would fill your -r
      path with symlinks.
      
      The hostname would not contain slashes by definition and would be
      explicitly checked to make sure it isn't "." or "..".
      
      I suspect the patch comes in at under 30 lines, mostly command-line processing.
      
      Seem worthwhile?
      
      http://svn.haxx.se/dev/archive-2008-07/0703.shtml
      

      Attachments

        1. 1_svnserve-vhost.patch.txt
          3 kB
          Bert Huijben

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhuijben Bert Huijben
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: