I need to configure cdn with nginx for images. GeoIp is working fine, but i have a problem with images that are not found on cdn server
.
I configured nginx the following way:
Client requests the image from server1, server1 checks if the client is from "UK" is yes redirect to CDN server
. but now lets say the image is not found on CDN server
server how can i redirect back to server1
if CDN server
is also from "UK". this will enter to endless loop...