How to redirect http to https with Apache/SVN/SSL
Patrick W. Barnes
nman64 at n-man.com
Sun May 10 23:40:23 UTC 2009
On Sunday 10 May 2009 18:30:50 Patrick W. Barnes wrote:
>
> <VirtualHost host.domain.com:80>
> ServerName host.domain.com
> ...
> RewriteEngine On
> RewriteRule ^/$ https://host.domain.com/ [R,L]
> RewriteRule ^/(.*) https://host.domain.com/$1 [R,L]
> </VirtualHost>
>
Forgot to mention...
Redirecting SVN causes it to display a message to the user, rather than follow
the redirect. Since I assume you want to force SSL to be used, setting up
non-HTTPS access or having Apache proxy non-HTTPS queries is probably not what
you want, and having SVN display that message and force users to specify HTTPS
may be your best option.
--
Patrick "The N-Man" Barnes
nman64 at n-man.com
http://n-man.com/
LinkedIn:
http://linkedin.com/in/nman64
Have I been helpful? Rate my assistance!
http://rate.affero.net/nman64/
All messages cryptographically signed:
http://en.wikipedia.org/wiki/OpenPGP
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090510/7e4fe0c3/attachment-0001.sig>
More information about the fedora-list
mailing list