LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   multiple nginx reverse proxy possible ? (https://www.linuxquestions.org/questions/linux-newbie-8/multiple-nginx-reverse-proxy-possible-4175559867/)

ioub22 11-25-2015 10:26 AM

multiple nginx reverse proxy possible ?
 
domain = example.com

server 1 ip = 1

server 2 ip = 2

server 3 ip = 3

server 1 = where website files are located

server 2 run nginx reverse proxy and point to server 1

example.com point to server 2

is it possible to make server 3 with reverse proxy also to point to server 1 ?
some kind of load balancing

this is the config in server 2

Code:

  server {
 listen 80;
 server_name server2;
 error_log off;
 proxy_pass http://1/; server 1 ip
 proxy_set_header Host      $host;
 proxy_set_header X-Real-IP $remote_addr;
  access_log  off;
log_not_found  off;
 } }



All times are GMT -5. The time now is 06:31 PM.