![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
FE-阿阳
爱学习的程序猿
展开
-
mac nginx 初次配置的默认路径
mac nginx 初次配置的默认路径问题描述mac 上初次配置 nginx,会出现找不见默认路径的情况,以下是总结的默认路径解决方案nginx 默认安装的地方(默认的配置文件路径)/usr/local/etc/nginxnginx 默认配置文件配置的是 8080 端口,会返回一个默认的 index.html 页面,这个 index.html 页面路径为下// [version]...原创 2019-01-06 15:58:02 · 15752 阅读 · 6 评论 -
nginx 配置 https 报错问题
nginx 配置 https 报错问题问题描述用 nginx 配置 https 时,需要配置 443 端口、私钥路径、证书路径。会报错如下:root@VM-173-231-ubuntu:~# nginx -tnginx: [emerg] BIO_new_file("/usr/local/nginx/conf1_yculcy.cn_bundle.crt") failed (SSL: erro...原创 2019-05-16 10:04:12 · 2741 阅读 · 0 评论 -
nginx 常用的全局变量
记录一些 nginx 常用的全局变量详情描述nginx 的全局变量容易忘记,以下记录一下备用:$remote_addr // 获取客户端ip$binary_remote_addr // 客户端ip(二进制)$remote_port // 客户端port,如:50472$remote_user // 已经经过Auth Basic Module验证的用...原创 2019-05-16 15:40:22 · 3906 阅读 · 0 评论 -
nginx 配置 http 强转 https
nginx 配置 http 强转 https问题描述如今 https 比 http 更加安全,可以用 nginx 配置一下 http 请求强转 https;解决方案方法一:采用nginx的497状态码server { listen 8080 default_server; listen [::]:8080 default_server; # SSL configuration ...原创 2019-05-16 16:35:59 · 957 阅读 · 0 评论