Forum Discussion
michael_trott_1
Nimbostratus
Apr 29, 2008iRule && VIP type problems
hi all,
have a http/s app sitting behind vip. Needing to perform some http functions based on the uri.
eg something like:
when HTTP_REQUEST {
if {[IP::addr [IP::client_addr]/16 equals 192.168.0.0]} {
{pool example_pool}
}
elseif {([HTTP::uri] starts_with "/apple") or ([HTTP::uri] starts_with "/blah/banana") or ([HTTP::uri] starts_with "/blah2/blah.jsp")} {
{HTTP::redirect "http://www.google.com"}
}
}
basically if internal user: allow full access to pool, the next IF statement checks URI, designed to sheild off particular URI's that aren't yet ready to be opened up externally.
Because i attempting to use HTTP based funcitons its saying i am needing the HTTP profile selected (currently running performance layer 4). So i select performance http, gives me an error cause i have wildcard pool members (to handle initial http, then https session).So from my perspective i cant do that, unless anyone has any ideas?
Next thing i tried is selecting the Standard VIP type, with http profile set to http. As soon as i do the website stops responding, assuming related to the 80/443 handover or just dodgy app, either way no go. However with Standard type selected no http profile, site works (but again cant apply iRule cause no http profile seclected)
any ideas?
thnx
- michael_trott_1
Nimbostratus
have the standard profile now working, must've been an issue with the irule. also removed the default pool. trying to trouble shoot the irule now - Colin_Walker_12Historic F5 AccountHopefully this will work for you the way you have it set up. If you're still having issues, let us know where you're at, and we'll try to help.
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