I have 3 servers supporting my infrastructure. One being the main server which hosts application/web server. Rest of the two cache static content and redirect requests to the appl. server.
I want to write rewrite rules in Apache conf files to redirect any request for static content to the server closest to the source of request. For eg, if a user from Asia is generating the request, my rewrite rule should take user to download static content cached in the server hosted close the them.
How can I add rewrite rules to identify source of the request and redirect conditionally to a different server.
I want to write rewrite rules in Apache conf files to redirect any request for static content to the server closest to the source of request. For eg, if a user from Asia is generating the request, my rewrite rule should take user to download static content cached in the server hosted close the them.
How can I add rewrite rules to identify source of the request and redirect conditionally to a different server.