05-15-2008 11:57 AM
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
!
05-15-2008 11:43 PM
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.
05-22-2008 10:03 AM
Thanks it helps me to resolve my issue.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: