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

redirect for CSS11506

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
Bronze

Re: redirect for CSS11506

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

New Member

Re: redirect for CSS11506

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.

Cisco Employee

Re: redirect for CSS11506

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.

New Member

Re: redirect for CSS11506

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.

137
Views
0
Helpful
4
Replies