Forum Discussion
Mandragor
Altostratus
Aug 16, 2017URI list syntax for http compression
We have a VIP that hosts different applications on different path-elements, like
.. and so on.
I would like to enable http compression only on /app1/* requests, but setting
/app1/*
in the URI ...
Jad_Tabbara__J1
Cirrostratus
Aug 16, 2017Hello Mandragor,
Based on this article https://support.f5.com/csp/article/K15434
You have two options :
-
you want to manage the compression from an irule ---> then you must "check" the option "Selective Compression" from your HTTP Compression profile.
-
you want to manage it directly from the profile ---> then you keep the "Selective Compression" as it is (by default unchecked)
If you go with first option try this irule :
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/app1/" } {
COMPRESS::enable
} elseif { [string tolower [HTTP::path]] starts_with "/app2/" } {
}
}
Hope it helps
Regards
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