Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- # The IP that you forwarded in your router (nginx proxy)
- listen 192.168.0.101:80; listen [::]:80;
- # Make site accessible from http://localhost/
- server_name 192.168.0.104 discourse;
- # The internal IP of the VM that hosts your Apache config
- set $upstream 192.168.0.104;
- location / {
- proxy_pass http://discourse.myreserveddns.com:8080/;
- # proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
- proxy_read_timeout 90;
- proxy_set_header Host $http_host;
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Real-IP $remote_addr;
- # proxy_redirect http://discourse.myreserveddns.com:8080/ http://discourse.myreserveddns.com;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement