cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
631
Views
0
Helpful
3
Replies

Remove Port # from URL on ACE

lxcollin1
Level 1
Level 1

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

3 Replies 3

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

It's port 80. I have SSL proxy on the ACE so the client sees SSL, but the web server is adding :80 to the string so the URL looks like this to the end client:

https://mysite.com:80/test

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

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: