cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
562
Views
5
Helpful
2
Replies

HTTP to HTTPS on same CSM

config_raval
Level 1
Level 1

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

!

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

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.

Thanks it helps me to resolve my issue.