Avancement:
La configuration d'apache.
Le contenu de mon fichier /etc/httpd/conf.d/subversion.conf:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be both:
#
# a) readable and writable by the 'apache' user, and
#
# b) labelled with the 'httpd_sys_content_t' context if using
# SELinux
#
#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
# # chcon -R -t httpd_sys_content_t stuff
#
<Location /repoFreTest>
DAV svn
SVNParentPath /var/svn
# Limit write permission to list of valid users.
<LimitExcept GET PROPFIND OPTIONS REPORT>
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /repoFreTest/conf/authz
Require valid-user
</LimitExcept>
</Location> |
J'ai appliqué les droits sur le repository comme préconisé dans le subversion.conf
1 2 3
|
# # chown -R apache.apache stuff
# # chcon -R -t httpd_sys_content_t stuff |
Redémarrage du service apache et svn:
/etc/init.d/httpd restart
et
/etc/init.d/svnserve restart
A la tentative de Ceckout maintenant, j'ai une erreur "Access to '/monRepository' forbidden"
Pour le test, dans le fichier authz, j'ai donné les droits rw a * (* = rw).
Ca ne fonctionne pas malgré tout...
J'oublies encore quelque chose?
Partager