Advertisement
Sergio_Istea

balancer.app nginx vhost

Jun 13th, 2024
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. upstream balancer.app.backends {
  2. server 172.31.27.32:8000;
  3. server 172.31.27.32:8001;
  4. }
  5.  
  6. server {
  7. listen 80;
  8.  
  9. server_name balancer.app;
  10.  
  11. location / {
  12. proxy_pass http://balancer.app.backends;
  13. proxy_set_header Host $host;
  14. proxy_set_header X-Real-IP $remote_addr;
  15. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16. proxy_set_header X-Forwarded-Proto $scheme;
  17. }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement