Hi All, I would like to know if I can configure nginx to utilise different set of cache zone conditionally. For example - if the user-agent is a mobile device then use proxy_cache zone called "mobile_proxy_zone" - if $http_cookie contains the word "semi-static" then use proxy_cache zone called "semistatic_proxy_zone" - if user IP address is 8.8.0.0/16 then use proxy_cache zone called "gws_internal_zone" - Serve the rest using proxy_cache zone default_zone At this point, I don't mind having the rules as first hit first serve ( ie if it matched user-agent then just use mobile_proxy_zone even when the semi-static is present on the $http_cookie ) Is this do able ? Can we specify the proxy zone dynamically ? Regards, Rianto Wahyudi Posted at Nginx Forum: http://forum.nginx.org/read.php?2,234555,234555#msg-234555
on 2012-12-29 00:24
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.