subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Masaru Kitajima <tachi.sil...@gmail.com>
Subject Re: Problem in connecting the server
Date Mon, 04 Jun 2012 01:02:02 GMT
Stefan,

I disabled the Document root /var/www/html and it's directory
configuration in /etc/httpd/conf/httpd/conf.

And in the /etc/httpd/conf/httpd/conf, the WebDAV is defined as below.
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/svn/dav.lock
</IfModule>
<Directory /var/lib/svn>
    DAV on
</Directory>

And in /etc/httpd/conf.d/subversion.conf. I defined as below.
<Location /svn>
   DAV svn
   SVNParentPath /var/lib/svn
   SVNAutoversioning on
   <LimitExcept GET PROPFIND OPTIONS REPORT>
      # Require SSL connection for password protection.
      # SSLRequireSSL

      AuthType Basic
      AuthName "Authorization Realm"
      AuthUserFile /etc/httpd/conf.d/svn_auth
      Require valid-user
   </LimitExcept>
</Location>

Then I restarted the httpd and tried to connect via client,
but the result was same. Still cannot connect.

Kindest regards,
Masaru

On 2012/06/03, at 1:07, Stefan Sperling wrote:

> On Sat, Jun 02, 2012 at 07:39:46PM +0900, Masaru Kitajima wrote:
>> Stefan,
>> 
>> I have one website configuration and its document root is /var/www/html/.
>> This is where I want to put the php files. No other website is configured.
>> 
>> And I want to manage there versions with subversion and its repository
>> is /lib/svn/project.
>> 
>> Do you recommend to disable /var/www/html/?
> 
> Yes. Please try to disable the other website and check if that
> makes the problem go away.
> 
> What URL do you use to access the website? Is the website at '/' ?
> 
> Please make sure that <Location /svn> and the website location do
> not overlap. Else, Apache HTTPD might mis-route requests destined
> for Subversion to the website, and vice-versa.
> 
> Qutoing http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html
>  Be sure that when you define your new Location, it doesn't overlap with other
>  exported locations. For example, if your main DocumentRoot is exported to /www,
>  do not export a Subversion repository in <Location /www/repos>. If a request
>  comes in for the URI /www/repos/foo.c, Apache won't know whether to look for a
>  file repos/foo.c in the DocumentRoot, or whether to delegate mod_dav_svn to
>  return foo.c from the Subversion repository. The result is often an error from
>  the server of the form 301 Moved Permanently.


Mime
View raw message