Advertisement
Sergio_Istea

test.balancer

Nov 11th, 2023 (edited)
1,731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.27 KB | None | 0 0
  1. upstream backend_servers {
  2.    
  3.     server 190.0.0.10;
  4.  
  5.  
  6. }
  7.  
  8.  
  9. server {
  10.     listen 80;
  11.     server_name test.balancer;
  12.  
  13.     location / {
  14.         proxy_set_header Host $host;
  15.         proxy_set_header X-Real-IP $remote_addr;
  16.         proxy_pass http://backend_servers;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement