Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
weatherbox:database:reverseproxy [2017/09/29 23:41] rmukai |
weatherbox:database:reverseproxy [2021/09/19 21:59] (current) |
||
---|---|---|---|
Line 15: | Line 15: | ||
proxy_set_header X-Real-IP http; #Client IP address for Nginx | proxy_set_header X-Real-IP http; #Client IP address for Nginx | ||
proxy_set_header X-Forwarded-For $remote_addr; #Client IP address for PHP | proxy_set_header X-Forwarded-For $remote_addr; #Client IP address for PHP | ||
- | proxy_set_header Host $host; #Changes from default $proxy_host since local application | + | proxy_set_header Host $host; #Enables proxy to same server/machine |
proxy_pass http://127.0.0.1:3000; #Enables the passing of header fields | proxy_pass http://127.0.0.1:3000; #Enables the passing of header fields | ||
} | } |