Thank you.
My configurations were:
1.
root /path_to_root1;
if ($remote_addr = xx.xx.xx.xx) {
set $document_root /path_to root2;
}
2.
map $remote_addr $document_root {
default /path_to_root1;
xx.xx.xx.xx /path_to root2;
}
3.
geo $document_root {
default /path_to_root1;
xx.xx.xx
I have one domain and I want to serve different pages based on the Client
IP.
Nginx refuse different server with same server_name and both location must
be / .
Can you help me?
Tnk
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,255744,255744#msg-255744
_