I set up two upstream servers (server 1 and server 2) where I geotarget
people from specific countries: A
People from country A go to server 1 and the others go to server 2.
There are some uri s that must be served by server 1 when the person is
in
country A. So I have created this directive. It works only when I
include
one item, when I do (videos|events) it does not work
I do it this way because there are URLs that contain videos and events
that must be served by server 1. For example, domain.com/videos/playing-with-my-dog etc. When I reload this directive
nginx does not give me any errors, but when I try to access it from
country B, it does not work.
works on jogs and gifs, why can not I use the same syntax for the URIs
as
I am doing it?
Does it mean then that I have to define each location block one by one
with different URIs even though all the information inside the location
block is the same? Is there a regex to match the OR condition just as
you
do with jogs?