
Tento configurar o subversion em um servidor apache. Eu segui este guia: [http://wiki.centos.org/HowTos/Subversion][1]
Se eu tentar fazer o checkout posteriormente com um projeto do Tortoise SVN, recebo o seguinte erro:
Unexpected HTTP status 405 'Method Not Allowed' on '/repos
Se eu tentar usar o cliente svn no próprio servidor Linux, recebo o seguinte erro:
svn: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://server.ch/repos'
Minha configuração atual no servidor Apache é assim:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<VirtualHost *:443>
...
<Directory "/var/www/svn/">
Order allow,deny
Allow from all
AllowOverride all
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/subversion/svn-auth-conf
Require valid-user
</Directory>
<Location /repos>
DAV svn
SVNParentPath /var/www/svn/repos
SVNListParentPath on
SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/subversion/svn-auth-conf
Require valid-user
</Location>
</VirtualHost>
Obrigado por qualquer sugestão ou ajuda antecipadamente
cumprimentos Marcos
Responder1
Encontrei o problema, o local e o SVNParentPath foram definidos incorretamente. Eu segui a solução aqui [http://www.wandisco.com/svnforum/threads/35525-Stuck-with-error-%E2%80%9C405-Method-Not-Allowed%E2%80%9D][1]
a configuração correta no apache é assim:
<VirtualHost *:443>
...
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
SVNListParentPath on
SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/subversion/svn-auth-conf
Require valid-user
</Location>
</VirtualHost>
Responder2
Em algum lugar da configuração do Apache, desative esse OPTIONS
método usado pelo SVN. Você pode ativar este método dentro<Directory "/var/www/svn/">
<Directory "/var/www/svn/">
...other config here
<Limit OPTIONS>
Order Deny,Allow
Allow from all
</Limit>
...other config here
</Directory>
Você deve saber qual implicação de segurança para ativar este MÉTODO. Para todos os métodos HTTP usados pelo SVN, consultedocumentação oficial.