Advertisement
sergio_educacionit

balancer

Aug 4th, 2023
1,699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.43 KB | None | 0 0
  1. upstream balanceado {
  2.     # por defecto el balanceador traba en roun robin
  3.     # descomentar solo un algormito por vez
  4.     # less_conn;
  5.     # ip_hash;
  6.  
  7.     server 10.0.2.20:80;
  8.     server 10.0.2.21:80;
  9.   }
  10.  
  11.  
  12.  
  13. server {
  14.     listen 80;
  15.  
  16.     server_name infraestructuras.cloud;
  17.        
  18.     location / {
  19.         proxy_pass http://balanceado;
  20.     proxy_set_header Host $host;
  21.     proxy_set_header X-Real-IP $remote_addr;
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement