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

Content Switch HTTP to HTTPS Redirect

diehardpatsfan
Level 1
Level 1

I have been asked to create an automatic redirect when somebody requests http to go to https. I have never really dealt with a content switch before. I am looking for content L3_Rule_testapp to basically automatically redirect to content L3_Rule_SSL_testapp. Any help would be appreciated.

 

!************************* KEEPALIVE *************************
 

 
keepalive SERVER-NAME-A
 
  type ssl
 
  ip address 192.168.10.151
 
  uri "/testapp/Login.htm"
 
  description "SSL keepalive for SERVER-NAME-A"
 
  port 443
 
  active
 

 
keepalive SERVER-NAME-B
 
  port 443
 
  type ssl
 
  ip address 192.168.10.152
 
  uri "/testapp/Login.htm"
 
  description "SSL keepalive for SERVER-NAME-B"
 
  active


 
keepalive NON-Secure-SERVER-NAME-A
 
  port 80
 
  type http
 
  ip address 192.168.10.151
 
  uri "/testapp/Login.htm"
 
  description "Port 80 Keepalive for SERVER-NAME-A"
 
  active

 
keepalive NON-Secure-SERVER-NAME-B
 
  description "Port 80 Keepalive for SERVER-NAME-B"
 
  port 80
 
  type http
 
  ip address 192.168.10.152
 
  uri "/testapp/Login.htm"
 
  active


 
!************************** SERVICE **************************
 
 
service SERVER-NAME-A
 
  keepalive type named SERVER-NAME-A
 
  ip address 192.168.10.151
 
  port 443
 
  protocol tcp
 
  active

 
service SERVER-NAME-B
 
  keepalive type named SERVER-NAME-B
 
  ip address 192.168.10.152
 
  port 443
 
  protocol tcp
 
  active
 
 
service NON-Secure-SERVER-NAME-A
 
  keepalive type named NON-Secure-SERVER-NAME-A
 
  port 80
 
  ip address 192.168.10.151
 
  protocol tcp
 
  active

 
service NON-Secure-SERVER-NAME-B
 
  keepalive type named NON-Secure-SERVER-NAME-B
 
  port 80
 
  protocol tcp
 
  ip address 192.168.10.152
 
  active
 
 
!*************************** OWNER ***************************
 
owner L5_Access

 
  content L3_Rule_testapp
 
    vip address 192.168.10.22
 
    advanced-balance sticky-srcip
 
    sticky-serverdown-failover sticky-srcip
 
    protocol tcp
 
    port 80
 
    balance aca
 
    add service NON-Secure-SERVER-NAME-A
 
    add service NON-Secure-SERVER-NAME-B
 
    active

 
  content L3_Rule_SSL_testapp
 
    balance aca
 
    advanced-balance sticky-srcip
 
    sticky-serverdown-failover sticky-srcip
 
    port 443
 
    protocol tcp
 
    vip address 192.168.10.22
 
    add service SERVER-NAME-A
 
    add service SERVER-NAME-B
 
    active

 
!*************************** GROUP ***************************
 
group HIN_HTTP_testapp
 
  redundancy-l4-stateless
 
  vip address 192.168.10.22
 
  add destination service SERVER-NAME-A
 
  add destination service SERVER-NAME-B
 
  add destination service NON-Secure-SERVER-NAME-A
 
  add destination service NON-Secure-SERVER-NAME-B
 
  active

 

1 Accepted Solution

Accepted Solutions

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi,

Below link shows how can you configure redirection in different ways.

http://www.cisco.com/c/en/us/support/docs/application-networking-services/css-11000-series-content-services-switches/41840-redirects-config.html

Please have a look and let me know if you have any question.

Regards,

Kanwal

Note: Please mark answers if they are helpful.

View solution in original post

2 Replies 2

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi,

Below link shows how can you configure redirection in different ways.

http://www.cisco.com/c/en/us/support/docs/application-networking-services/css-11000-series-content-services-switches/41840-redirects-config.html

Please have a look and let me know if you have any question.

Regards,

Kanwal

Note: Please mark answers if they are helpful.

It would appear that I got it to work. I was about to give up then noticed that I hadn't set something to active. Worked after that. I will come back if I need anymore assistance but other then that thanks.

Review Cisco Networking for a $25 gift card