HTTP to HTTPS on same CSM

Unanswered Question
May 15th, 2008

I have to issues:

1) redirect port 80 to 443 on same CSM

2) Allow 443 in directly to the same server that port 80 is being redirected to.

Here I have real servers listening at 443. I have made HTTPS working but I am not able to redirect HTTP request to HTTPS. Following is my configuratin for redirect. Let me know what I am doing wrong.

configuration for redirecting request from http://www.example.com/> to https://www.example.com

!

map REDIRECTMAP url

match protocol http url example.com

!

serverfarm REDIRECT

nat server

no nat client

redirect-vserver REDIRECT

webhost relocation <https://www.example.com/>

inservice

vserver HTTP

virtual 172.1.2.241 tcp www

serverfarm REDIRECT

slb-policy REDIRECTPOLICY

persistent rebalance

inservice

!

policy REDIRECTPOLICY

url-map REDIRECTMAP

serverfarm REDIRECTFARM

!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Gilles Dufour Thu, 05/15/2008 - 23:43

Your url map is wrong.

And since you want to match everything anyway going to port 80, you can simply not use a url-map.

So remove your slb-policy.

Gilles.

Actions

This Discussion