Apache mod_proxy dynamic filter – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about apache-2.2, proxy, , , .
How can I configure Apache to ProxyBlock content based on something dynamic such as time-of-day or max-use. Basicly I’m curious about the scriptability of Apache. My web-stumbling leads me to believe I can combine mod-proxy and mod-perl in interesting ways to do dynamic filtering. But I’m pretty lost. What are some general instructions, tutorials, books, technologies to begin scripting Apache (or any suitable proxy).
Squid is often used for this sort of thing, since it has a language for specifying ACLs that includes support for time of day, as well as a variety of other attributes.
However, if you were wedded to Apache (and I would really recommend Squid for something like this) you could do this with mod_rewrite, a programming
RewriteMap, and whatever scripting language you prefer. Use mod_rewrite to create a proxying
RewriteRule that uses your script for generating the URL replacement, and then your script can implement whatever logic you want.