NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
1v9
V2EX  ›  NGINX

关于 nginx.conf 配置问题

  •  
  •   1v9 · Jul 3, 2017 · 2384 views
    This topic created in 3244 days ago, the information mentioned may be changed or developed.
    之前用 LNMP 一键包默认包含 server 字段,定义了一个 LNMP 安装完成的默认主机。
    现在按照 sb.sb 的教程 APT 安装了 nginx,默认没有 server 字段。
    两者都是 1.12.0 版本的,include *.conf 都工作正常,到这里都没有问题。
    问题是,后者只要加入 server 字段无论内容繁简都无法通过 nginx -t 的检测。
    因为以前一些全局的配置我习惯放在 nginx.conf 的 server 字段解决,所以发现了这个问题。
    是因为编译和 APT 的不同还是什么别的原因?我要疯了。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2577 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:50 · PVG 23:50 · LAX 08:50 · JFK 11:50
    ♥ Do have faith in what you're doing.