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

求助nginx返回503的问题设置

  •  
  •   itopidea ·
    itopidea · Nov 21, 2012 · 4567 views
    This topic created in 5097 days ago, the information mentioned may be changed or developed.
    使用的nginx
    想让网站首页返回503代码
    其他页面都正常 200
    如何设置呢?急!
    1 replies  •  1970-01-01 08:00:00 +08:00
    itopidea
    itopidea
    OP
    Nov 21, 2012
    1
    已经解决

    location =/ {
    return 503;
    }

    这样就可以实现上面的问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1296 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:17 · PVG 06:17 · LAX 14:17 · JFK 17:17
    ♥ Do have faith in what you're doing.