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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容