原文:nginx localhost的坑

在nginx.conf配置文件里,如果需要配置 localhost 和其它域名 同端口共存的server,一定要保证 localhost 所在的server 在nginx.conf里的顺序是第一位的,不然访问 localhost 的server时会访问到同端口的第一个server ,而不是 localhost 所在的server ...

2020-09-15 11:55 0 1672 推荐指数:

查看详情

nginx关闭后仍然能够访问localhost:80

今天安装nginx遇到一个奇怪的问题,nginx打开后,我想关闭,个人有个强迫症:开了之后不想用时就关闭,ps:个人使用的版本是:1.18.0 结果使用命令 nginx -s stop命令来关闭后,访问localhost:80时,仍然能够打开 使用命令打开netstat -ano ...

Sun Feb 14 21:19:00 CST 2021 0 1142
nginx rewrite 踩

nginx rewrite 500的故障 今天遇到的一个问题 当访问 www.biglittleant.cn/mall 返回500,当访问 www.biglittleant.cn/mall/返回正常的页面。 我们来还原一下当时的情况 nginx配置文件如下: 重启一下nginx ...

Thu Apr 30 20:16:00 CST 2020 0 831
nginx与fastdfs配置详解与

nginx与fastdfs配置详解与 环境 ubantu19.04 fastdfs-5.11 fastdfs-nginx-module-1.20 libfastcommon-1.0.39 nginx-1.15.12 pcre2-10.33 openssl-1.0.2r nginx配置 ...

Mon Apr 29 05:34:00 CST 2019 0 1099
nginx 配置踩实录

http{include mime.types;default_type application/octet-stream;source_charset GB2312;server_names_has ...

Thu Oct 29 04:52:00 CST 2020 0 668
mac无安装nginx

mac无安装nginx 首先需要mac下有一个缺失的软件包的管理器------->homebrew 1.打开终端输入 brew update 说明homebrew已经安装好了 2.继续执行以下命令 查询安装的软件是否存在 brew search nginx ...

Sun Oct 24 00:27:00 CST 2021 0 2235
 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM