ivmm
V2EX  ›  问与答

直接 https 下图片 403, http 下自动跳转到 https 但图片却可以访问了。

  •  
  •   ivmm · Oct 6, 2016 · 2543 views
    This topic created in 3713 days ago, the information mentioned may be changed or developed.

    好迷啊。

    'nginx -t' 都是正常的, html 是可以直接加载的,但是图片就是跪了, js 、 css 也正常。

    貌似防盗链的设置也没问题啊

    5 replies  •  2016-10-06 06:18:04 +08:00
    msg7086
    msg7086
    Oct 6, 2016
    1
    看上去像是防盗链。
    ivmm
    ivmm
    OP
    Oct 6, 2016
    2
    @msg7086

    玄幻的是,有几张 .jpg .png 的图片是正常的 10%, 剩余的 .jpg .png 图片都是挂的。
    mbfan
    mbfan
    Oct 6, 2016 via Android
    3
    文件本身的读权限?
    ivmm
    ivmm
    OP
    Oct 6, 2016❤️1
    4
    @mbfan
    @msg7086

    解决了,确实是防盗链设置有问题。不过有几张可以,有几张不可以我真的想不通
    aeshfawre
    aeshfawre
    Oct 6, 2016
    5
    referer
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:28 · PVG 12:28 · LAX 20:28 · JFK 23:28
    ♥ Do have faith in what you're doing.