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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CSS 11500 and Redirections

Ok, so I have this particular problem and I'm not sure if there's a way to overcome this.

I have a content rule which is listening to port 80 (let's say ip address 192.168.1.1), when that content rule is hit, the content rule redirects that query to port 443 in the same ip address (192.168.1.1) so we can always force they come to port 443 no matter what.

The problem I have is this, if someone hits https://192.168.1.1/MyFolder/MyApp/ it works fine, but when someone hits that same URL coming from port 80, the content rule redirects to the root.

If they go to https://192.168.1.1/MyFolder/MyApp/ they are being redirected to 192.168.1.1 only.

is there a way to overcome this? maybe saving the URL portion in a variable and then pass it along the redicrection?

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: CSS 11500 and Redirections

Attached is a sample to achieve that

service HTTP2HTTPS

no prepend-http

keepalive type none

type redirect

domain https://www.yoursite.com

active

content HTTP2HTTPSrule

vip address 192.168.1.1

protocol tcp

port 80

url "/*"

add service HTTP2HTTPS

active

content HTTPS

vip address 192.168.1.1

protocol tcp

port 443

add service yoursslserver1

add service yoursslserver2

active

Thanks

Syed Iftekhar Ahmed

3 REPLIES

Re: CSS 11500 and Redirections

Attached is a sample to achieve that

service HTTP2HTTPS

no prepend-http

keepalive type none

type redirect

domain https://www.yoursite.com

active

content HTTP2HTTPSrule

vip address 192.168.1.1

protocol tcp

port 80

url "/*"

add service HTTP2HTTPS

active

content HTTPS

vip address 192.168.1.1

protocol tcp

port 443

add service yoursslserver1

add service yoursslserver2

active

Thanks

Syed Iftekhar Ahmed

New Member

Re: CSS 11500 and Redirections

Awesome, thanks Syed, I'll try the configs tomorrow to see how they work :)

New Member

Re: CSS 11500 and Redirections

Working perfectly, thanks a lot.

163
Views
0
Helpful
3
Replies