Look somewhere else for that image
If the image isn't in the /images/ directory, look in /images1/, /images2/, and /images3/ for it as well.
I want all requests to my site to get sent to a certain page. Perhaps for a "system is down for maintenance" condition, or perhaps there's really only one page here. So, for example, let's send everything to page.html
Or, if you want all pages mapped to a handler that knows what to do with that page:
Connecting to Tomcat
We are using the 2.2 branch of Apache HTTP Server as frontend while all requests with a jsp extension should be served by our tomcat backend server on Port 8009.
Mod_rewrite passes all requests which are ending with .jsp to mod_proxy (mod_proxy_ajp]). We use the Apache JServ Protocol (ajp), this means the modules [http://httpd.apache.org/docs/trunk/mod/mod_proxy_ajp.html and mod_proxy must be loaded into the server configuration.
We have one frontend server which serves static content while the processing of dynamical content is up to two backend servers.
Using mod_rewrite, mod_proxy and mod_proxy_balancer.
A brief description may be provided in the future.
Note: The directive ProxySet is undocumented. You can use this directive in order to set additional parameters for a balancer or a worker, because the following does not work as expected:
Log executable file access
We wish to create a log file that logs accesses to executable files, wherever they are in the filesystem, and whatever file extension they have.
The LA-U syntax does a look-ahead to find out what the value of a particular variable will be later on. This requires a sub-request, and that results in something of a performance hit. Consider using the ScriptLog directive instead. However, the technique used here can be used for a larger class of problems, when a variable isn't available at request time, but will be later on.
Using HTTP Headers for routing
Using a custom HTTP header for rewrite rules to allow calls to be dynamically routed
Using mod_rewrite, mod_proxy and custom headers sent from a client, we have been able to rewrite end points for web service calls routed through a proxy to multiple backends.
We needed this for internal routing of web service calls proxied from a web app server to our backend servers. We wanted a way to have multiple web service engines in behind with the client not knowing anything about where the call was routed to. The service bus could not always handle dynamic routing but the client could set a header value with routable data. As well, this type of routing is far more efficient than having a service bus pull the message apart and route based on that, even on SOAP headers.