开发者

svn list command error 200 on an Apache+SVN server setup

开发者 https://www.devze.com 2023-01-17 09:13 出处:网络
I\'m setting up an Apache+SVN server for work. I can checkout a repository, but when I run the svn list command I get the following error \"OPTIONS of \'https://server\': 200 OK (https://server)\"

I'm setting up an Apache+SVN server for work. I can checkout a repository, but when I run the svn list command I get the following error "OPTIONS of 'https://server': 200 OK (https://server)"

Here is my subversion.conf

 <Location /svn/>

   DAV svn
   SVNParentPath /svn/repos/
   # Require SSL connection for password protection.
   SSLRequireSSL

   AuthType Basic
   AuthName "NH SVN"
   AuthUserFile /svn/repos/users
  开发者_Go百科 Require valid-user

 </Location>

If I remove the trailing / I get 403 forbidden errors when I run the same command.


You can not list repositories. Only files IN a repository. So you need to create a repository first at /svn/repos/ using "svnadmin create". Dont forget to give apache rw-rights on the new repository

svnadmin create /svn/repos/mynewrepository
svn list https://serverurl/svn/mynewrepository

SVNParentPath means you can have multiple repositories under this path.

0

精彩评论

暂无评论...
验证码 换一张
取 消