SVN Repo gives 404 not Found

前端 未结 2 1923
闹比i
闹比i 2021-01-25 05:11

I have installed svn, version 1.6.17 (r1128011) on to Ubuntu 12-04

I made my repo here:

$ sudo mkdir /home/2nd-disk/svn

Set up my /etc/

相关标签:
2条回答
  • 2021-01-25 05:35

    I have this problem sovled just now . prep. I set up my /etc/apache2/http.conf

    LoadModule dav_module         /usr/lib/apache2/mod_dav.so
    LoadModule dav_svn_module     /usr/lib/apache2/mod_dav_svn.so
    LoadModule authz_svn_module   /usr/lib/apache2/mod_authz_svn.so
    

    It works for a period without 404 while I then try to browse to http://mydomain.com/svn/test_repo .But after I reboot my Linux, I get a 404 not found. Try to add the lines to /etc/apache2/conf.d.subversion.conf

    LoadModule dav_module         /usr/lib/apache2/mod_dav.so
    LoadModule dav_svn_module     /usr/lib/apache2/mod_dav_svn.so
    LoadModule authz_svn_module   /usr/lib/apache2/mod_authz_svn.so
    

    My SVN works well now! I wish these recommendations can help you.

    0 讨论(0)
  • 2021-01-25 05:47

    add the reference to your vhost instead of dav_svn.conf:

     <Location /svn>
       DAV svn
       SVNPath /var/local/svn
       AuthType Basic
       AuthName "Subversion repository"
       AuthUserFile /etc/apache2/dav_svn.passwd
       <LimitExcept GET PROPFIND OPTIONS REPORT>
         Require valid-user
       </LimitExcept>
     </Location>
    

    good tutorial is here: http://wiki.ubuntuusers.de/Subversion

    don't forget to restart apache to apply changes:

     sudo /etc/init.d/apache2 restart
    
    0 讨论(0)
提交回复
热议问题