• 请不要在回答技术问题时复制粘贴 AI 生成的内容
PPZZPP
V2EX  ›  程序员

网址/和/index.html 的问题

  •  
  •   PPZZPP · Oct 7, 2023 · 2250 views
    This topic created in 1139 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
    weixiangzhe
    Oct 7, 2023
    1
    nginx 的 index 或者 tryfile 没有配置好,发出来看看
    PPZZPP
    PPZZPP
    OP
    Oct 8, 2023
    2
    @weixiangzhe nginx 用的是默认配置
    julyclyde
    julyclyde
    Oct 9, 2023
    3
    你用 curl 访问一下 index 看看到底返回了啥
    所谓空白,也可能是浏览器对响应的进一步处理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4810 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:08 · PVG 11:08 · LAX 19:08 · JFK 22:08
    ♥ Do have faith in what you're doing.