Forum Discussion
URL rewrite on port 80 + Load Balancing
Hi All,
We have two servers in a load balancing pool behind a virtual server/host (xyz.com).
How are we able to hide the two servers on http port 80 behind the virtual host and rewrite the url (eg. http://www.xyz.com to http://www.abc1.com/asdf/hello.dll and http://www.abc2.com/asdf/hello.dll) while leaving the rest untouched?
4 Replies
- youssef1
Cumulonimbus
Hi Aguinas,
I think what you want to do is quite simple, especially as a profile exists for this purpose. You can use a rewrite profile.
Can you please confirm me that you want to process rewrite only in response... If not you have to implement an irule for the request.
Procedure: Local Traffic --> Profiles --> Services --> Rewrites.
You set Rewrite mode: URI Translation In URI Rules you set as following:
1 - Rule type: Response
Client URI: http://www.xyz.com
Server URI: http://www.abc1.com/asdf/hello.dll
2 - Rule type: Response
Client URI: http://www.xyz.com
Server URI: http://www.abc2.com/asdf/hello.dll
Don't forget to attach your profile to your VS.
Regards
- aguinas_303127
Nimbostratus
We still want to mask the both servers behind the virtual host (eg. ). So do i need to use irule for it? How can i do it? Thanks!
How can i put an exception for a path and all of its lower levels (eg. etc..) not to be include in the rewrite? (If included, it will look like which what im trying to avoid)
- youssef1
Cumulonimbus
Hi,
Did you implement your needs?
You can do it with an irule and stream profile, but I advise you to use rewrite profile as explain in my previous post. For information if you use rewrite profile you can trigged the rewrite with a specific url or a wildcard...
So let me now if it's clear for you.
Regards,
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com