【问题标题】:Redmine CSS file access forbidden upon installation安装时禁止Redmine CSS文件访问
【发布时间】:2014-11-12 07:01:15
【问题描述】:

我刚刚在 Ubuntu 14.04 上安装了 Redmine(2.5.2)。 我正在使用 Apache2+Passenger

该站点运行良好,但它不会像以下屏幕截图那样加载 css 文件。

当我检查时,这就是我得到的。

我的虚拟主机如下所示。

ServerAdmin admin@example.com 服务器名称 redmine.example.com

DocumentRoot /usr/local/redmine/public
RailsEnv production
RailsBaseURI / <Directory /usr/local/redmine/public>
Options Indexes FollowSymLinks
AllowOverride All </Directory>

ErrorLog ${APACHE_LOG_DIR}/redmine.example.com-error.log </VirtualHost>

有人对如何解决这个问题有建议吗? 比你!!!

更新 这是apache错误日志

[Mon Sep 22 09:00:58.736635 2014] [authz_core:error] [pid 20338] [client 175.130.114.60:56351] AH01630: client denied by server configuration: /usr/local/redmine/public/stylesheets/application.css

我在 redmine/log/production.log 中没有看到任何错误

【问题讨论】:

  • 您是否在“logs/production.log”中收到任何错误消息?
  • 这是我在日志文件中看到的。连接到由 database.yml 指定的数据库创建范围:系统。覆盖现有方法 Enumeration.system。创建范围:排序。覆盖现有方法 Group.sorted。创建范围:排序。覆盖现有方法 User.sorted。在 2014 年 9 月 22 日 01:24:32 -0400 开始 GET "/" for 106.169.170.134 由 WelcomeController#index 作为 HTML 处理当前用户:匿名在 layouts/base (103.2ms) 内渲染了welcome/index.html.erb 已完成200 OK 在 373.7 毫秒内(查看:139.8 毫秒 | ActiveRecord:14.4 毫秒)

标签: ruby-on-rails ruby-on-rails-3 apache redmine ubuntu-14.04


【解决方案1】:

我找到了解决方案。 我从这个SO article得到了答案 问题在于我的 VirtualHost 配置

我添加了以下行

Require all granted

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-31
    • 2012-05-28
    • 1970-01-01
    • 2013-06-07
    • 1970-01-01
    相关资源
    最近更新 更多