How to redirect http to https with Apache/SVN/SSL [SOLVED]
Patrick W. Barnes
nman64 at n-man.com
Mon May 11 17:28:33 UTC 2009
On Monday 11 May 2009 12:18:47 Daniel B. Thurman wrote:
> Then that would mean that my normal website for anonymous users
> would be forced use https when it is not required?
>
> As it is, I could just drop the <VirtualHost host.domain.com:80>
> code block for subversion and who cares if subversion reports an error
> for those attempting to use the http:[...]/svn/svnX string, as it would
> not be allowed except for https.
>
> Seems nicer to force http to https only for /svn requests but perhaps
> there is no solution/support for it... from what I can tell, others have
> claimed to get this to work but I have not been able to duplicate it.
If you really do not mind Subversion displaying an error for non-SSL requests,
then your solution is very easy. Just move your configuration for /svn inside
of your SSL <VirtualHost> configuration. Non-SSL Subversion requests would
fail with a 404 error, non-SSL requests elsewhere on your site would be
unaffected.
--
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/20090511/ffc479f2/attachment-0001.sig>
More information about the fedora-list
mailing list