redirect for CSS11506

Unanswered Question
Oct 25th, 2007

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
diro Thu, 10/25/2007 - 22:13

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

Gilles Dufour Tue, 10/30/2007 - 06:02

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.

julxu Tue, 10/30/2007 - 16:26

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.

Actions

This Discussion