[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

mod_dav_svn + ssl -- protocol changes from 'https' to 'http' after authentication

From: Danny MacMillan <flowers_at_users.sourceforge.net>
Date: 2006-04-11 02:36:31 CEST

Hi,

I have a subversion repository being served up by Apache2 and
mod_dav_svn on FreeBSD 6.0-RELEASE-p6. I want the repository
to be accessible ONLY using https. I'm most of the way there,
but I am experiencing some weird behaviour. When accessing the
repository using a web browser.

If I try to access the repository using the following URL:

https://dev.example.com/projectname/svn

I am prompted for authentication, just as I should be. Once I
authenticate, though, the address bar of the browser changes to:

http://dev.example.com/projectname/svn/

Since this URL doesn't point to anything useful, I get a 404.

If I try to access the same repository using THIS URL:

https://dev.example.com/projectname/svn/

It works as expected -- I authenticate and it then shows me the
directory listing of / for the latest revision. The only difference
is the presence or absence of the trailing slash.

I'm sure there's something simple I'm missing, but I don't know
what it might be. Why is it 'redirecting' using the http scheme
after authentication?

Relevant portions of httpd.conf:

<Location /projectname/svn>
    DAV svn
    
    # "/projectname/svn" URL will map to a repository /devroot/projectname/svn
    SVNPath /devroot/projectname/svn
    
    # Style the output.
    SVNIndexXSLT "/svnindex.xsl"
    
    # Connections must be made through SSL.
    SSLRequireSSL
    
    # Only authenticated users can use the repository.
    Require valid-user
    
    # How do we authenticate them?
    AuthType Basic
    AuthName "Secure Subversion Repository"
    AuthUserFile /usr/devroot/projectname/_common/auth/authentication
    
    # What are they authorized to do?
    AuthzSVNAccessFile /devroot/projectname/_common/auth/authorization
    
</Location>

<VirtualHost 192.168.1.251:443>
    
    # General setup for the virtual host
    ServerName dev.example.com
    ServerAdmin webmaster@example.com
    DocumentRoot /usr/local/www/data
    ErrorLog /var/log/dev.example.com-error_log
    CustomLog /var/log/dev.example.com-access_log common
    
</VirtualHost>

-- 
Danny MacMillan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 11 19:05:45 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.