cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
385
Views
0
Helpful
4
Replies

redirect for CSS11506

julxu
Level 1
Level 1

Greeting,

An application using tombat, port 8080. (http://myserver:8080/myapp/shared/login.jsp)

Now, I need to redirect port 8080 to port 80, and I did:

content test

vip address 10.2.1.123

balance leastconn

url "/*"

add service test-peppard-8080

protocol tcp

port 80

redirect "myapp/shared/login.jsp"

active

now, I can do http://myserver/myapp/shared/login.jsp", I can login without problem.

but, when I do http://myserver it give me error http 400.

Could anyone advice me how can I make http://myserver automatically redirect to http://myserver/myapp/shared/login.jsp?

the service configure is:

service test-peppard-8080

ip address 10.1.1.1.241

protocol tcp

keepalive type tcp

port 8080

keepalive port 8080

active

Any comments will be apprecited

thanks in advance

4 Replies 4

diro
Level 1
Level 1

This could do the trick

content testok

vip address 10.2.1.123

balance leastconn

url "/myapp/shared/login.jsp"

add service test-peppard-8080

protocol tcp

port 8080

active

content testnok

vip address 10.2.1.123

url "/*"

protocol tcp

port 80

redirect "myapp/shared/login.jsp"

active

service test-peppard-8080

ip address 10.1.1.1.241

protocol tcp

keepalive type tcp

port 8080

keepalive port 8080

active

Thanks for the example.

I had copied to my CSS11506, but, still not work.

it displays "The page cannot be displayed".

both on site:

http://10.2.1.123 http://10.2.1.123/myapp/shared/login.jsp

the web server includes apatch and tombat.

Please advice. Thanks.

in the content testok that was given to you, replace the 'port 8080' command with 'port 80'

If that does not work, give us your config and a client trace.

Gilles.

Hi, Gilles

Great thanks. it works, I can see the page now. But, it still have some problem. I can see the page, but I can not login.

Do I still need give you client trace? please confirm.

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: