V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
veezzz
V2EX  ›  NGINX

nginx 的反向代理与 index.html

  •  
  •   veezzz · 2015-03-25 18:12:47 +08:00 · 2867 次点击
    这是一个创建于 3322 天前的主题,其中的信息可能已经有所发展或是发生改变。

    nginx该如何配置让根路径访问index.html,其他的路径使用反向代理

    2 条回复    2015-03-27 14:31:01 +08:00
    lhbc
        1
    lhbc  
       2015-03-25 22:27:31 +08:00   ❤️ 1
    location = /
    location ~ /
    veezzz
        2
    veezzz  
    OP
       2015-03-27 14:31:01 +08:00
    @lhbc 是这么解决的 多谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5522 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.