Sorry, Alvin: fell asleep, there. ;-)
On 2008/12/22 9:58 PM, Alvin ONeal wrote:
> So it seems that the best solution to my second problem
> (redirecting https > http, http > https) would be to use mod
> rewrite. I've tried this bit of action below but it isn't doing
> anything
>
> <Virtual......
> .......
> DocumentRoot /var/www/
> RewriteEngine On
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^svn\.twdp\.hobby-site\.org(.*)$
> https://svn.twdp.hobby-site.org$1 [L,R]
I reckon that's not matching because the matched-on string (the
left-hand side of your RewriteRule) is the REQUEST_URI (the requested
URL, minus the host part*). So, if you're navigating to:
http://svn.twdp.hobby-site.org/foo/bar
You're trying to match
^svn\.twdp\.hobby-site\.org{.*)$
against
/foo/bar
* Note that this may or may not resemble the filesystem path to the
requested document, relative to the DocumentRoot, depending upon whether
you have any Aliasing in effect for this URL.
This is what it's doing for me, anyway. ;-)
If it doesn't blow up the rest of your arrangement or preceipitate some
sort of security issue, you could try this RewriteRule:
RewriteRule (.*) https://svn.twdp.hobby-site.org$1 [L,R]
HTH.
Cheers,
-sth
sam hooker|http://www.noiseplant.com|i am between the internet
"Where your eyes don't go, a filthy scarecrow waves his broomstick arms
and does a parody of each unconscious thing you do..."
They Might Be Giants
"Where Your Eyes Don't Go"
signature.asc
Description: OpenPGP digital signature
