Remove Port # from URL on ACE

Unanswered Question
Aug 8th, 2008

Hello,

Is it possible to configure the ACE to remove a port number from a URL? For example, I have a server that is sending a string of "http://mysite.com:80/test" to the client, but I want it to be "http://mysite.com/test". Any ideas?

Thanks,

Lee

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Syed Iftekhar Ahmed Fri, 08/08/2008 - 10:15

Why does it matter?

The back end servers never complains about :80

Is it only about port 80? or you want to translate different ports in requests to port 80 on the real server.

Syed

Syed Iftekhar Ahmed Fri, 08/08/2008 - 10:22

I got it.

For this you need to use SSL rewrite function.

This will ensure that the response from Real server is rewritten.

Configuration example.

If server is sending port 80 in the url and you want it get converted to 443.

action-list type modify http 80t0443

ssl url rewrite location ".*" sslport 443 clearport 80

policy-map type loadbalance http first-match syed-policy

class xyz

serverfarm sf1

action 80t0443

Details at

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A2/configuration/ssl/guide/terminat.html#wp1119436

Thanks

Syed Iftekhar Ahmed

Actions

This Discussion