Hi,
I have a similar set-up which works OK. Maybe check the following;
(1) DOUBLE-check mod_rewrite is installed; i.e. do;
# ./httpd -l
and check you see "mod_rewrite.c"
(2) Switch on logging; i.e. add the directives marked -->;
RewriteEngine on
--> RewriteLog logs/rewrite_log
--> RewriteLogLevel 9
RewriteRule ^/(.*) https://www.secure.tconline.net/cgi-bin/opensrs$1
Tail the logfile while you try hits and see what it is doing...
(3) Your rules look a bit eclectic. What I do is refer to dummy
directories; i.e.
in the non-ssl VirtualHost;
DocumentRoot /home/banana/html
RewriteRule ^/secure/(.*) https://www.banana.com/$1
in the non-ssl HTML docs;
<a href=/secure/credit_card_form.html>This goes to the SSL
VirtualHost</a>
in the SSL VirtualHost;
DocumentRoot /home/banana/html/secure_stuff
RewriteRule ^/http/(.*) http://www.banana.com/$1
in SSL HTML docs;
<a href=/http/plain_old_file.html>This goes back to good old HTTP</a>
Note that the "http" and "secure" directories don't actually exist.
These are just tokens that the Rewrite engine parses and replaces with
the appropriate http:// or https:// URLs.
Best of luck anyway,
Owen Boyle.
--
SWX Swiss Exchange, 10 Cours de Rive, 1211 Geneve 3
--------------------------+-------------------------
Phone: +41 (0)22 849 5648 | Fax: +41 (0)22 849 5643
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]