01-26-2010 12:50 PM
Greetings,
Does anyone know how to redirect HTTP traffic to HTTPS when using CSM and SSL?
Thanks,
Mohamad
Solved! Go to Solution.
01-29-2010 06:47 AM
Hi Mohamad,
I've seen this done in slightly different ways. One way is at the very bottom of the following examples from the Cisco.com CSM-S config guide:
Another way is like this:
serverfarm REDIRECT
nat server
no nat client
redirect-vserver REDIRECT
webhost relocation https://www.example.com/
inservice
!
serverfarm SSL_DC
no nat server
no nat client
real 192.168.78.36 local
inservice
!
vserver VSERVER_80
virtual 192.168.78.35 tcp 80
serverfarm REDIRECT
persistent rebalance
inservice
!
vserver VSERVER_443
virtual 192.168.78.35 tcp 443
serverfarm SSL_DC
persistent rebalance
inservice
Hope this helps get you started.
Sean
01-29-2010 06:47 AM
Hi Mohamad,
I've seen this done in slightly different ways. One way is at the very bottom of the following examples from the Cisco.com CSM-S config guide:
Another way is like this:
serverfarm REDIRECT
nat server
no nat client
redirect-vserver REDIRECT
webhost relocation https://www.example.com/
inservice
!
serverfarm SSL_DC
no nat server
no nat client
real 192.168.78.36 local
inservice
!
vserver VSERVER_80
virtual 192.168.78.35 tcp 80
serverfarm REDIRECT
persistent rebalance
inservice
!
vserver VSERVER_443
virtual 192.168.78.35 tcp 443
serverfarm SSL_DC
persistent rebalance
inservice
Hope this helps get you started.
Sean
01-29-2010 07:44 AM
Thank you Sean,
I was able to make the redirects works by doing something similar to what you mentioned.
Thanks,
Mohamad
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide