【问题标题】:Forbidden 403 error when running apache运行 apache 时出现禁止的 403 错误
【发布时间】:2015-08-19 23:02:03
【问题描述】:

我正在尝试在运行 apache2 的 Ubuntu 14.10 上设置一个 Rails 应用程序(redmine)。

日志

无法服务器目录:没有匹配的 DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) 找到, 和选项指令禁止的服务器生成的目录索引

host.confg

<VirtualHost *:80>
  ServerAdmin kanishka@thewolf.in
  ServerName app.in
  ServerAlias app.in
  DocumentRoot /var/www/app.in/public_html/
  ErrorLog /var/www/app.in/log/error.log
  CustomLog /var/www/tribeapp.in/access.log combined
  <Directory  /var/www/app.in/public_html/redmine/public>
    Options Indexes FollowSymLinks MultiViews
        Require all granted
    RailsBaseURI /redmine
    PassengerResolveSymlinksInDocumentRoot on
    Order allow,deny
    allow from all
    AllowOverride all
  </Directory>
</VirtualHost>

Rails 新手。如果您需要更多信息,请告诉我。

【问题讨论】:

标签: apache ubuntu


【解决方案1】:

试试这个

Options All <--turn on all options
Options Indexes FollowSymLinks   <--- replace previously set options with these two

【讨论】:

    猜你喜欢
    • 2013-08-29
    • 2012-09-26
    • 1970-01-01
    • 2014-06-13
    • 1970-01-01
    • 2016-01-12
    • 2013-07-19
    • 1970-01-01
    • 2014-07-16
    相关资源
    最近更新 更多