Forum Discussion
Https redirect and pool selection
I need to write an irule doing two things :
1 - offload SSL and redirect http requests to https
2 - make a pool selection based on the object type requested
ex : for *.php --> send to pool php_pool
for * --> pool to static_pool
so it should look to something like :
http-->https
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
dispatch requests
when HTTP_REQUEST priority 501 {
switch -glob [HTTP::path] {
*.php { pool php_pool }
default { pool static_pool }
}
}
The problem : it looks like the dispatching section is never processed ! whats wrong with this code ?
Thanks for all
Hamid
- hooleylistCirrostratusHi Aiche,
- Aiche_Hamid_241NimbostratusThanks Aaron, i will try it tomorrow and bring you feedback asap.
- Aiche_Hamid_241NimbostratusYour are the best Aaron :-) Everything is working like expected now.
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