Answers
简单的说,你可以用proxy_pass。
比方说你的服务地址是:127.0.0.1:8888
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://127.0.0.1:8888;
}
重启nginx即可
東方恋苺娘
answered 10 years, 5 months ago