My repository directory is /var/www/svn and access file is /var/www/svn-auth and I create repository project1 in svn directory
My configuration
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>
some modification httpd.conf
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;
}
}
I can login but cannot access file It say file not found like this error_log
[Fri Feb 01 10:06:44 2013] [error] [client 115.87.26.145] (20014)Internal error: Can't open file '/var/www/svn/REPOSITORY_NAME/format': No such file or directory [Fri Feb 01 10:06:44 2013] [error] [client 115.87.26.145] Could not fetch resource information. [500, #0] [Fri Feb 01 10:06:44 2013] [error] [client 115.87.26.145] Could not open the requested SVN filesystem [500, #2] [Fri Feb 01 10:06:44 2013] [error] [client 115.87.26.145] Could not open the requested SVN filesystem [500, #2] [Fri Feb 01 10:06:45 2013] [error] [client 115.87.26.145] File does not exist: /var/www/favicon.ico
then I try change SVNPath /var/www/svn/REPOSITORY_NAME
to SVNPath /var/www/svn
and access svn.mydomain.com/project1 and error_log still show my wrong path
[Fri Feb 01 10:23:28 2013] [error] [client 127.0.0.1] (20014)Internal error: Can't open file '/var/www/svn/format': No such file or directory [Fri Feb 01 10:23:28 2013] [error] [client 127.0.0.1] Could not fetch resource information. [500, #0] [Fri Feb 01 10:23:28 2013] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #2] [Fri Feb 01 10:23:28 2013] [error] [client 127.0.0.1] Could not open the requested SVN filesystem [500, #2]
the right path should be /var/www/svn/project1
not /var/www/svn/
, /var/www/svn/REPOSITORY_NAME
I try use SVNPath /var/www/svn/project1
and this work I can access project1 but if I config like this I can't access another project
Please help!!!! Thank you very much.