10-25-2007 04:50 PM
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
10-25-2007 10:13 PM
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
10-28-2007 07:44 PM
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.
10-30-2007 06:02 AM
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.
10-30-2007 04:26 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide