V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
PPZZPP
V2EX  ›  程序员

网址/和/index.html 的问题

  •  
  •   PPZZPP · Oct 7, 2023 · 1753 views
    This topic created in 938 days ago, the information mentioned may be changed or developed.

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

    3 replies    2023-10-09 21:20:22 +08:00
    weixiangzhe
        1
    weixiangzhe  
       Oct 7, 2023
    nginx 的 index 或者 tryfile 没有配置好,发出来看看
    PPZZPP
        2
    PPZZPP  
    OP
       Oct 8, 2023
    @weixiangzhe nginx 用的是默认配置
    julyclyde
        3
    julyclyde  
       Oct 9, 2023
    你用 curl 访问一下 index 看看到底返回了啥
    所谓空白,也可能是浏览器对响应的进一步处理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2503 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 361ms · UTC 08:41 · PVG 16:41 · LAX 01:41 · JFK 04:41
    ♥ Do have faith in what you're doing.