nginx

win10 相关nginx操作(在nginx文件下运行命令窗口)
启动:start nginx
检查配置文件:.\nginx -t
关闭: \nginx -s stop 或 \nginx -s quit
重载: \nginx -s reload
查看版本:\nginx -V

http访问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
实际访问的真实地址是https://xxx.com/prod-api/code

你可能感兴趣的:(nginx)