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

Re: https connection without http

From: Seth Daniel <subversion_at_sethdaniel.org>
Date: 2004-03-12 22:24:30 CET

On Fri, Mar 12, 2004 at 09:18:14PM +0100, Marcin Gil wrote:
> Christophe Labouisse wrote:
> >
> > You have to put the svn configuration lines in the <VirtualHost
> > _default_:443> define in the ssl.conf file.
> >
> So I did but this doesn't solve problem. http://url/repo still works
> and that's what I'm trying to do: no http access to repository.

Well, you can do what I did...redirect them elsewhere when they hit your
secure site with http.

Using the following rules I can allow https access to dev.mysite.org but
http access gets redirected to www.mysite.org.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^dev.mysite.org$
RewriteCond %{SERVER_PROTOCOL} ^HTTP[^S].*$
RewriteRule ^/.*$ http://www.mysite.org/ [R=permanent]

-- 
seth / @sethdaniel.org
This post is encrypted twice with ROT-13.  Documenting or attempting to
crack this encryption is illegal.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 12 22:25:09 2004

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.