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

Remove Port # from URL on ACE

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

Re: Remove Port # from URL on ACE

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

New Member

Re: Remove Port # from URL on ACE

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

Re: Remove Port # from URL on ACE

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

344
Views
0
Helpful
3
Replies
CreatePlease login to create content