Forum Discussion
Almassud_221797
Nov 08, 2015Cirrus
if http uri starts with
Good morning all,
by no means an iRule expert, but I spend a good bit of time on google before posting.
the situation here is that I have this irule, which I am building upon at this point,...
- Nov 12, 2015
Thank you sir.
I ended up having our dev team make a change so that I can have a single website with a virtual directory for each website and that worked well.
Thanks all. MJ
Lucas_Thompson_
Nov 08, 2015Historic F5 Account
This is the connection chain here:
1. Client does handshake and transmits HTTP request to BIG-IP. It has a Host header and a Request-URI.
2. HTTP_REQUEST fires.
3. Your irule runs, switches the BIG-IP pool based on the Request-URI and sometimes rewrites the Host header from the client's request.
4. The request is transmitted to the web server.
5. Response from the web server is sent back to the client. Note that the Request-URI and Host header in the request are not part of it.
Be aware here that the client doesn't actually have any idea that the irule is doing this. You have to decide what you want the Host header and Request-URI to contain at the time that the server receives it. A Request-URI must contain *something*, it can't be blank. If it's empty (ie, you visit "http://site.com" instead of "http://site.com/foo"), the browser will send a Request-URI of "/". If you want to manipulate the Request-URI to be "/", you can just set it like:
HTTP::uri "/"
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