nginx proxy_pass to https code example
Example 1: pass proxy nginx
location ~ \.php {
proxy_pass http://127.0.0.1:8000;
}
Example 2: nginx proxy_pass
location /some/path/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8000;
}