cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
450
Views
0
Helpful
2
Replies

Is there an example config for redirecting http to https on CSM

astanislaus
Level 2
Level 2

Is there an example config for redirecting http to https on CSM

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

Here you go.

Use this serverfarm in your HTTP vserver and the client will be redirected to the ip address [or hostname] that you configured.

The '%p' is to preserver the path.

It is an option, so you don't have to use it if you want to redirect the use to a fixed path.

serverfarm HTTPS-RED

no nat server

no nat client

redirect-vserver HTTPS-RED

webhost relocation https://192.168.30.5/%p

inservice

!

Gilles

Hi,

I have an additional question off the back of this scenario.. (if you dont mind that is)..

Could you also do this at a TCP port level.. eg if you had 2 x vservers that both had the same IP and the http redirected itself to the https ?

An example of the current setup would be:

serverfarm cheese

real 10.10.10.10

inservice

vserver cheddar

virtual 11.11.11.11 tcp www

serverfarm cheese

inservice

vserver edam

virtual 11.11.11.11 tcp https

serverfarm cheese

inservice

and then any requests to the www would be forced to the https ?

Review Cisco Networking for a $25 gift card