Forum Discussion
Shridhar_84609
Nimbostratus
Aug 24, 2009Redirecting the URI
Hello,
I have a requirement to do the following -
http://abc.com/timesheets
should fetch the data from -
http://server1.com:30945/GroupServer/en/
...
hoolio
Cirrostratus
Aug 26, 2009Hi Shridhar,
When you test to /timesheets and to / what do you see in the browser? What do you see in the /var/log/ltm log file and the server access logs? You should see requests for /timesheets rewritten to /GroupServer/en and sent to the first pool. Requests for / should get sent to the second pool and be rewritten to /primaveraweb.
You're correct that the snippet of code you quoted will select the second pool. Then there is a check for a request to /. Such a request will be rewritten to /primaveraweb:
Use default HTTP pool
pool default_http_pool
log local0. "[IP::client_addr]:[TCP::client_port]: Using default_http_pool"
Rewrite path if path is exactly /timesheets
if {[HTTP::path eq "/"}{
Rewrite path
HTTP::path "/primaveraweb"
log local0. "[IP::client_addr]:[TCP::client_port]: Rewriting path to /primaveraweb"
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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