Redirect to HTTPS using Load Balancer/SSL Offload

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

 



I was hoping someone could help me with a redirect problem.  We are
using a load balancer in front of our apache22 servers that also
provides SSL offloading.  Apache only runs on port 80, and doesn't know
anything about 443.  When a client asks for a specific page, I want to
redirect them to the secure equivalent.  Here is the current rule I am
using, along with the rewrite log error:


RewriteCond %{REQUEST_URI} ^/dir1/dir2/file1\.php$
RewriteRule ^.*$ https://www.doman.com%{REQUEST_URI} [R=301,L]


75.83.2.48 - - [23/Nov/2007:15:50:57 --0800]
[www.doman.com/sid#5555557f0ec8][rid#55555618f7f8/initial] (2)
explicitly forcing redirect with
https://www.doman.com/dir1/dir2/file1.php
75.83.2.48 - - [23/Nov/2007:15:50:57 --0800]
[www.doman.com/sid#5555557f0ec8][rid#55555618f7f8/initial] (1) escaping
https://www.doman.com/dir1/dir2/file1.php for redirect
75.83.2.48 - - [23/Nov/2007:15:50:57 --0800]
[www.doman.com/sid#5555557f0ec8][rid#55555618f7f8/initial] (1) redirect
to https://www.doman.com/dir1/dir2/file1.php [REDIRECT/301]
75.83.2.48 - - [23/Nov/2007:15:50:58 --0800]
[www.doman.com/sid#5555557f0ec8][rid#555555f3a3c8/initial] (2) init
rewrite engine with requested uri /dir1/dir2/file1.php
75.83.2.48 - - [23/Nov/2007:15:50:58 --0800]
[www.doman.com/sid#5555557f0ec8][rid#555555f3a3c8/initial] (2) rewrite
'/dir1/dir2/file1.php' -> 'https://www.doman.com/dir1/dir2/file1.php'


Any help would be greatly appreciated.

Matt


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux