V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
PPZZPP
V2EX  ›  程序员

网址/和/index.html 的问题

  •  
  •   PPZZPP · 208 天前 · 956 次点击
    这是一个创建于 208 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的 uniapp 配置了 history 模式,访问/没问题可以正常显示,但是访问/index.html 就直接空白了,但是也没报错。就比如我访问”http://baidu.com/h5/”没问题,访问”http://baidu.com/h5/index.html”就是空白页。求大佬们帮解答一下

    3 条回复    2023-10-09 21:20:22 +08:00
    weixiangzhe
        1
    weixiangzhe  
       208 天前
    nginx 的 index 或者 tryfile 没有配置好,发出来看看
    PPZZPP
        2
    PPZZPP  
    OP
       207 天前
    @weixiangzhe nginx 用的是默认配置
    julyclyde
        3
    julyclyde  
       205 天前
    你用 curl 访问一下 index 看看到底返回了啥
    所谓空白,也可能是浏览器对响应的进一步处理
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2319 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:42 · PVG 20:42 · LAX 05:42 · JFK 08:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.