LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2015, 10:26 AM   #1
ioub22
LQ Newbie
 
Registered: May 2012
Posts: 10

Rep: Reputation: Disabled
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;
 } }

Last edited by ioub22; 11-25-2015 at 10:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nginx/ArchLinux reverse proxy aagaag Linux - Software 0 08-24-2014 08:44 AM
Nginx Reverse proxy on a internal apache reverse server ITiger Linux - Software 0 04-25-2014 07:44 AM
Nginx reverse proxy - ip problem donglee Linux - Software 1 01-15-2014 07:43 PM
[SOLVED] Nginx as SSL Reverse Proxy mosiac Linux - Server 6 07-18-2013 03:54 PM
Nginx like as a reverse proxy for Apache Abadon_ Linux - Server 0 11-13-2009 04:53 AM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration