cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
536
Views
0
Helpful
3
Replies

CSS 11500 and Redirections

daniel.pimentel
Level 1
Level 1

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

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

View solution in original post

3 Replies 3

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

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

Working perfectly, thanks a lot.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: