Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite Apach redirect rules based on the source of request

Status
Not open for further replies.

abhiyada

MIS
Dec 28, 2016
2
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top