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

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

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

2 REPLIES
Cisco Employee

Re: Is there an example config for redirecting http to https on

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

Community Member

Re: Is there an example config for redirecting http to https on

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 ?

177
Views
0
Helpful
2
Replies
CreatePlease to create content