网络技术 阿里云项目部署

【转】阿里云oss错误:Forbidden access to the original image

好长时间没看网站了,今天突然发现了一个问题就是所有的图片都看不到了。如图:

遇到这种问题的时候,不要慌,因为oss涉及了多层通讯,需要先排查问题。我先看了一下http状态码。我用的是chrome浏览器,按Ctrl+Shift+i调出控制台,点击network,展示如下图,可以看到图片文件是403,也就是说这个文件还在,地址也正确,但是访问这个地址请求不到这个资源,那就是被禁止了。这样一来,原因就能通过一个状态码来分析出来,排查的范围就大大缩小了。

首先,php.ini、nginx.conf包括mysql那边我都没改过。这个问题出现的也是非常突然。那么我觉得问题就在阿里云oss的配置上,oss的配置有站内和站外,站内就是WordPress的插件,站外就是阿里云oss的控制台。我先打开了WordPress的插件,验证了AccessKey信息正确,域名正确,路径正确,ssl正确,oss也没用cdn。网站上是从没改过的,这就可以排除oss插件配置是正常的。

 

我在新窗口中打开了状态码为的403图片

在message中看到了一句[Forbidden access to the original image],不用一个词一个词的解释了,这句话意思是禁止访问原始图像。原始图像(original image),我记得oss控制台里面有这个选项近似的意思,果然找到了。正确的步骤如下

  1. 登陆阿里云oss控制台https://oss.console.aliyun.com
  2. 选择bucket
  3. 图片处理
  4. 访问设置
  5. 关闭原图保护
  6. 回到站内Ctrl+F5刷新,或Ctrl+Shift+i打开Network勾选Disable Cache刷新。

35 thoughts on “【转】阿里云oss错误:Forbidden access to the original image

  1. I like the valuable information you provide in your articles.
    I’ll bookmark your blog and check again here regularly.
    I’m quite certain I will learn a lot of new stuff right here!
    Good luck for the next!

  2. Good day! I could have sworn I’ve been to this website before but after reading through some of
    the post I realized it’s new to me. Nonetheless, I’m definitely glad I found it and I’ll be book-marking and checking back frequently!

  3. Hey there! I know this is somewhat off topic but I was wondering
    which blog platform are you using for this site?
    I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at alternatives for another platform.
    I would be great if you could point me in the direction of a good platform.

  4. each time i used to read smaller articles or reviews
    that as well clear their motive, and that is also happening with this piece of writing which I am reading now.

  5. It’s a pity you don’t have a donate button! I’d without a doubt
    donate to this fantastic blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my
    Google account. I look forward to new updates and will
    talk about this website with my Facebook group. Chat soon!

  6. My spouse and I absolutely love your blog and find most of your post’s to be precisely what
    I’m looking for. Do you offer guest writers to write content for you personally?
    I wouldn’t mind producing a post or elaborating on a
    number of the subjects you write regarding here.

    Again, awesome website!

  7. Now that you find out about video editing and the what exactly you need you are prepared to begin with the journey of amateur filmmaker to professional director. It took about a few months to master the language along with the raucous, discordant (to my ears) “melody. Instead of enjoying karaoke parties, it is possible to always take the music and build your personal song, by plugging it in your TV sets.

  8. Sweet blog! I found it while searching on Yahoo News.

    Do you have any suggestions on how to get listed
    in Yahoo News? I’ve been trying for a while but I never seem to get there!

    Thanks

  9. You could go on and on about how beautiful that person is, or how ravishing they may look, but that won’t have the same effect, because if they are used to hearing them, then it’ll be just as same all the time, or they might feel that you are exaggerating, which is certainly not helpful.
    You could put it across in such a fashion, that feels different, and yet enticing, going into a bit of details when you compliment her. Also it helps if you have a good memory and can tell, as how they look different than they usually are, this helps you get a few brownie points and she will remember your compliment for being different, and for the feel good factor.

  10. Comments where you extrapolate their beauty more, their personality more. If you’re searching for comments I assume that this person means slot to you. So I have here some comments which will be heartfelt to them. Don’t forget to thank me.
    By comments, I suppose, you mean compliments, and when it comes to compliments, girls or guys, both prefer it to be a genuine one.

  11. Hello, i read your blog from time to time and i own a similar one and i was
    just curious if you get a lot of spam feedback?
    If so how do you protect against it, any plugin or anything you can suggest?

    I get so much lately it’s driving me crazy so any assistance is very much appreciated. http://poker.bandar-q.cc

  12. I blog quite often and I really thank you for your content.
    This great article has truly peaked my interest. I’m going to take a note of your blog and keep checking for new details about once
    a week. I opted in for your RSS feed as well.

  13. Are a person tired of looking within the reflection and seeing those yucky red prdotrusions
    all over the face? The way would you like
    veey clear, gorgeous skin? We have got put together every
    one off the greatest tips to help anyone get distinct skin the fact that
    you can be satisfied with, and help you in order to
    nno lonver have to deal with bothersome blemishes.Insuranhce life quote

    Many that are suffering with acne blemishes put the oil-filled pores.
    If you choose chooze to pop a acne, doo this with clear
    hands. Do nnot forget about your own fingernails,
    either; an individual want to prevent introducing more bacteria to
    the contaminated pore. You will more than likely see a reduction associated with acne if you happen too be ready to
    put your acne responsibly.

    Remain hydrated to help with acne breakouts. Try to ingest a
    minimum of eight glasses regarding water
    the daay time tto maintain clear body. Waters flushes out the
    uhealthy toxins in your body, which also includes skin. Certainly
    not only will your pores and skin reduce acne-causing toxins, nonetheless it will probably
    be able to preserve the correct quantity oof wetness, to give it a
    more helthy glow.卢航网

    If a person needinsurance life quote to lessen a
    good large, red pimple, use a cold compress aas wll as also an 卢航网ice cube covered in a material.
    Applying the cold compress just befoore cargo box can certainly cause reduced redness in the
    morning, because the cold cann reduce the blood flkow to help the blemish plus the swelling will
    decrease.

    One of the biggest approaches to clear up acne
    is to take a 10 minute go walking outdoors very day.

    The sun’s rays and new aiir have the highly positive effect on skin. Make sure that you don’t stay out a long time,
    nevertheless, as burning yur skin layer has a negative influence plus
    your acne could grow tto be worse yet in the potential.Www torrentspy
    com

    As yoou can see, clear, wonderful skin can certainly be yours.
    Youu no longer possess to dread looking inside the mirror just to include individuals annoying, red hukps staring back at
    an individual. Follow the tips plus you can tell acne pimples to pack its totes and movee oon out.

    Youu might be now ready to enjoy serking in the mirror
    at yohr innovative, beautiful, clear skin. https://Www.findermt.com/bbs/board.php?bo_table=free&wr_id=8

  14. Good day I am so delighted I found your webpage, I
    really found you by error, while I was looking on Yahoo for something else,
    Anyhow I am here now and would just like to say many thanks for a remarkable post and a all round thrilling blog (I also love the theme/design),
    I don’t have time to browse it all at the moment but I have
    book-marked it and also added your RSS feeds,
    so when I have time I will be back to read more, Please do keep up the excellent work. http://blackpink.domino-qiu-qiu.cc

  15. We are a bunch of volunteers and starting a new scheme in our
    community. Your web site offered us with valuable information to work
    on. You have done a formidable process and our entire community will
    probably be thankful to you.

  16. Hi I am so excited I found your weblog, I really found you by mistake, while I was
    searching on Google for something else, Anyways I am here now and
    would just like to say thank you for a remarkable
    post and a all round exciting blog (I also love the theme/design), I don’t have time to read through it all at the moment
    but I have saved it and also included your RSS
    feeds, so when I have time I will be back to read much
    more, Please do keep up the excellent jo.

  17. 总感觉有些功能不知道是不成熟还是什么原因,用了就会有各种问题。CDN中也有些功能用了就会出问题。阿里云这个OSS的原图保护应该还是比较给力的,就是不知道为什么会有问题

  18. Hi there I am so delighted I found your web site, I really
    found you by accident, while I was searching on Aol for something else, Anyhow I am here now and would just like
    to say thank you for a fantastic post and a all round entertaining blog (I also love the theme/design),
    I don’t have time to go through it all at the moment but I have bookmarked it and also added
    your RSS feeds, so when I have time I will be back to read
    much more, Please do keep up the excellent job.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

答案 : *
6 − 2 =


返回顶部