Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

HTTP to HTTPS on same CSM

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
Cisco Employee

Re: HTTP to HTTPS on same CSM

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.

New Member

Re: HTTP to HTTPS on same CSM

Thanks it helps me to resolve my issue.

243
Views
5
Helpful
2
Replies