[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] mod_rewrite not working as intended?



Greetings,

Have any of you ever had any luck using mod_rewrite to modify the
{SERVER_PROTOCOL} or {SERVER_PORT} RewriteCond ???

I've been trying to get the pages on one of my customer's sites to
redirect FROM one https domain TO another https domain on account of the
SSL certificate for www.domain1.com  is self-signed, and the SSL
certificate for www.domain2.com (a shared SSL certificate) is
Thawte-signed (a real SSL cert).

I believe that it's due to the way that Cobalt deals with port 80 and
port 443 traffic as specified in the httpd.conf file, and due to their
using the mysterious Cobalt::SSL perl module, but I can't find any
information on it.

Can you please offer me some advice?


I've tried to use the following, but haven't gotten any positive
results:
RewriteCond %{HTTP_HOST}               ^www.domain1.com
RewriteCond %{SERVER_PROTOCOL}         !HTTPS
RewriteRule ^/(.*)
https://www.domain2.com/secure/www.domain1.com/$1 [R]

I've also tried the following, with no results:
RewriteCond %{HTTP_HOST}               ^www.domain1.com
RewriteCond %{SERVER_PORT}             !^443$
RewriteRule ^/(.*)
https://www.domain2.com/secure/www.domain1.com/$1 [L,R]


Thanks! :)

Joseph Lundgren
System Administrator
josephl@xxxxxxxxxxxx
Nu-World Communications
http://www.nu-world.com

Nu-World Communications
4015 Main St. Suite B
Springfield, OR 97478
(541)687-7200
(541)736-1094 (fax)
1-866-832-4872 (24-hour technical support)