Advertisement
mashiahd

http_nginx_vapps

Oct 14th, 2024
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.63 KB | None | 0 0
  1. server {
  2.  
  3.     listen 80;
  4.     server_name bwapp.vapps.mashiahs.com;
  5.  
  6.     access_log            /var/log/nginx/bwapp.access.log;
  7.  
  8.     location / {
  9.  
  10.       proxy_set_header        Host $host;
  11.       proxy_set_header        X-Real-IP $remote_addr;
  12.       proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  13.       proxy_set_header        X-Forwarded-Proto $scheme;
  14.  
  15.       # Fix the “It appears that your reverse proxy set up is broken" error.
  16.       proxy_pass          http://192.168.20.11:80;
  17.       proxy_read_timeout  90;
  18.  
  19.       proxy_redirect      http://localhost https://bwapp.vapps.mashiahs.com;
  20.     }
  21.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement