Forum Discussion
neeraj_66310
Nimbostratus
Dec 13, 2007I need to remove host from url and send it to particular pool
I am novice for creating irule, Kindly help me out for below requirement:--
user make request for one of 3 urls as below:--
1)http://main.test.com
2)http://main.test.com/first.test...
neeraj_66310
Nimbostratus
Dec 13, 2007Dear joe,
I do not want the rest of the URI to be (/foo/bar) stripped off , it should remain as it is.
For option 2) and 3) the rest of uri what you mentioned as /foo/bar portion will keep on changing and that should be send as original to server.i.e. I need /foo/bar as it is.
My problem is that I canot specify uri must be some fix value, as it will keep on changing if we browse within that page, only first.test.com portion will remain same for example 1)
I am giving example:--
user can request :--
a)http://main.test.com/first.test.com/jui/yui/opi
b)http://main.test.com/first.test.com/diff/one/two
c)http://main.test.com/first.test.com/diff/one/two
so on.
I need that big ip should do neccessary changes and send this user requests to server as below:--
a)http://first.test.com/jui/yui/opi
b)http://first.test.com/diff/one/two
c)http://first.test.com/diff/one/two
respectively
I tested your irule, now it is sending the request by replacing main.test.com as first.test.com as below:--
http://first.test.com/first.test.com/jui/yui/opi
which is not correct it should be :--
http://first.test.com/jui/yui/opi
To solve above problem, I tried with keeping replace "host" value blank but in this case big ip sends request as below:--
http:///first.test.com/diff/one/two
above you can see, after http: 3 forward slash are coming.
Other option which I can not use is specify uri exactly as only first.test.com portion of uri is same but later portion of uri keeps on changing.
I am near to get solution by using your solution, only problem is that, we need to modify Irule suggested by you so that bigip will replace the host as suggested in irule and will remove only first.test.com portion of uri and rest it will send as it is.
I think now problem is very much clear.
Kindly provide me the solution if it is not possible to do it on Big ip let me know.
Waiting for your valuable suggestion.
Thanks
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects