server { listen 80; server_name example.com; # HTTP重定向到HTTPS rewrite ^(.*)$ https://$host$1 permanent; } 本栏目推荐文章字节微服务HTTP框架Hertz使用与源码分析|拥抱开nginx 一个域名区分pc和手机!https://mp.weixin.qq.com/s/dBVwoInshAv3wMxkx9Sfvw安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reasonnginx启用HTTP2特性nginx代理header丢失的问题图解HTTP笔记Nginx——配置代理-服务的代理"nginx.conf" E514 : write error (file system full?)netCore 6.0中配置 HTTPS证书和请求的域名Nginx https httpnginx https http nginx配置http跳转https的几种要求和方式记录 方式nginx https http nginx https http to https http http-https https原理http https指向http nginx https 网址https网站http