
Intento configurar Subversion en un servidor Apache. Seguí esta guía: [http://wiki.centos.org/HowTos/Subversion][1]
Si intento realizar el pago después con Tortoise SVN, aparece el siguiente error:
Unexpected HTTP status 405 'Method Not Allowed' on '/repos
Si intento utilizar el cliente svn en el servidor Linux, aparece el siguiente error:
svn: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://server.ch/repos'
Mi configuración actual en el servidor Apache se ve así:
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>
Gracias por cualquier sugerencia o ayuda de antemano.
saludos marca
Respuesta1
Encontré el problema: la ubicación y SVNParentPath se configuraron incorrectamente. Seguí la solución aquí [http://www.wandisco.com/svnforum/threads/35525-Stuck-with-error-%E2%80%9C405-Method-Not-Allowed%E2%80%9D][1]
la configuración correcta en Apache se ve así:
<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>
Respuesta2
En algún lugar de su configuración de Apache deshabilite este OPTIONS
método utilizado por SVN. Puedes habilitar 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>
Debe saber qué implicaciones de seguridad habilitar este MÉTODO. Para conocer todos los métodos HTTP utilizados por SVN, consultedocumentación oficial.