Eu coloquei o diretório svn e svn-auth em / var / www
e já altere o proprietário e defina a permissão com chown -R apache.apache /var/www/svn*
e chmod 600 -R /var/www/svn*
Minha configuração
svn.mydomain.com.conf
<VirtualHost 127.0.0.1:8080>
ServerName svn.mydomain.com
<Location />
DAV svn
SVNPath /var/www/svn/REPOSITORY_NAME
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /var/www/svn-auth/passwd
Require valid-user
</Location>
</VirtualHost>
alguma modificação link
Listen 8080
DocumentRoot "/var/www/"
<Directory "/var/www">
nginx svn.mydomain.com.conf
server {
server_name svn.mydomain.com;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
quando tentar acessar svn.mydomain.com/project1 não consigo fazer o login e receber este error_log
[Fri Feb 01 04:36:30 2013] [error] [client 127.0.0.1] (13)Permission denied: Could not open password file: /var/www/svn-auth/passwd
[Fri Feb 01 04:36:30 2013] [error] [client 127.0.0.1] access to /project1 failed, reason: verification of user id 'myuser' not configured
Eu tento usar AuthUserFile /etc/httpd/svn-auth/passwd
, então posso fazer o login, mas não consigo acessar o arquivo com este error_log
[Fri Feb 01 05:01:31 2013] [error] [client 127.0.0.1] (20014)Internal error: Can't open file '/var/www/svn/REPOSITORY_NAME/format': Permission denied
[Fri Feb 01 05:01:31 2013] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0]
[Fri Feb 01 05:01:31 2013] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #13]
[Fri Feb 01 05:01:31 2013] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #13]
[Fri Feb 01 05:01:32 2013] [error] [client 127.0.0.1] (20014)Internal error: Can't open file '/var/www/svn/REPOSITORY_NAME/format': Permission denied
[Fri Feb 01 05:01:32 2013] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0]
[Fri Feb 01 05:01:32 2013] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #13]
[Fri Feb 01 05:01:32 2013] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #13]
Por favor ajude !!!! Muito obrigado.