win10 相關(guān)nginx操作(在nginx文件下運(yùn)行命令窗口)
啟動(dòng):start nginx
檢查配置文件:.\nginx -t
關(guān)閉: \nginx -s stop 或 \nginx -s quit
重載: \nginx -s reload
查看版本:\nginx -V
http訪(fǎng)問(wèn)https nginx配置
location /prod-api/ {
proxy_ssl_server_name on;
proxy_pass https://xxx.com;
}
#或者
location /prod-api/ {
proxy_ssl_server_name on;
proxy_pass https://xxx.com/prod-api/;
}
比如http://localhost:8080/prod-api/code
實(shí)際訪(fǎng)問(wèn)的真實(shí)地址是https://xxx.com/prod-api/code