Advertisement
Sergio_Istea

balancer_vhost.conf

Nov 1st, 2022
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # Lista de servidores que contienen la misma informacion
  2. upstream example_balancers {
  3. server 10.0.0.10;
  4. server 10.0.0.11;
  5. server 10.0.0.12;
  6. }
  7.  
  8.  
  9. server {
  10. listen 80;
  11. server_name www.example.com;
  12.  
  13. location / {
  14. proxy_pass http://example_balancers;
  15. proxy_set_header Host $host;
  16. proxy_set_header X-Real-IP $remote_addr;
  17. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  18. proxy_set_header X-Forwarded-Proto $scheme;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement