简体   繁体   English

公共/图像中文件的奇怪错误“ 403禁止”

[英]Strange error “403 Forbidden” for files in public/images

I have got strange error - "403 Forbidden" for images in directory public/images . 我有一个奇怪的错误-目录public/images为“ 403 Forbidden”。 But other images from nested directories loads without problems (ig from public/images/product ). 但是从嵌套目录中加载其他图像不会出现问题(来自public/images/product ig)。 I'm using Nginx + passenger + capistrano. 我正在使用Nginx +乘客+ Capistrano。 In production.rb I have config.serve_static_assets = true . 在production.rb中,我有config.serve_static_assets = true Maybe error in assets pipeline? 也许资产管道有错误?

Have you checked the permissions for the folder? 您是否已检查文件夹的权限? As in right-click -> properties or 'chmod' to '755'? 如在右键单击->属性或将“ chmod”更改为“ 755”一样?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 403 Forbidden Error,从一个存储桶转移到另一个存储桶后,访问Google云存储桶中的图像 - 403 Forbidden Error for accessing images on google cloud bucket after transferred from one bucket to another Nginx 403:目录索引“ / home / deploy / MyApp / current / public /”被禁止 - Nginx 403: directory index of “/home/deploy/MyApp/current/public/” is forbidden 安装Ruby on Rails时出现403禁止错误 - 403 forbidden error while installing Ruby on Rails 从S3的视图中救援403禁止显示的图像 - Rescue 403 forbidden images in views from S3 403 /尝试使用SSL运行Rails 4应用程序时出现禁止错误 - 403 / Forbidden error when trying to run Rails 4 app with SSL HTTParty:后操作导致错误 Net::HTTPServerException(403“禁止访问”) - HTTParty: Post action is resulting in error Net::HTTPServerException (403 "Forbidden") 在Mac OSX上在Apache上部署Rails - 403禁止错误 - Deploying Rails on Apache on Mac OSX - 403 Forbidden Error 使用nginx和unicorn进行rails部署:403禁止错误 - rails deployment using nginx & unicorn: 403 forbidden error Nginx,Passenger,Ruby on Rails 4.1.6 Ubuntu 14-403禁止错误 - Nginx, Passenger, Ruby on Rails 4.1.6 Ubuntu 14 - 403 forbidden error Ruby on Rails应用无法查询AWS-禁止错误403 - Ruby on Rails app can't query AWS - error 403 forbidden
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM