【问题标题】:Redmine Install, only seeing file and folders. Possible Apache config issueRedmine 安装,只看到文件和文件夹。可能的 Apache 配置问题
【发布时间】:2014-10-06 09:25:10
【问题描述】:

所以我尝试按照此处的官方说明安装 redmine:

http://www.redmine.org/projects/redmine/wiki/redmineinstall

并成功使用 webrick 运行(第 9 步)。之后(机器使用的是 Debian)我使用了这个指南:

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_210_on_Debian_Squeeze_with_Apache_Passenger

“服务”redmine。然而,在完成所有这些之后,我只看到一个文件和文件夹列表。这是具有 redmine 配置的 000-default.conf:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        RailsEnv production
        RailsBaseURI /redmine

        <Directory /redmine>
                Options FollowSymLinks
                Order deny,allow
                PassengerResolveSymlinksInDocumentRoot on
                AllowOverride all
                Allow from all
                        RailsBaseURI /redmine
                Options -MultiViews
        </Directory>


</VirtualHost>

这只是我尝试的最新配置,因为我添加了我可以想出的每个选项来尝试让它工作。对于此事,我将不胜感激。

【问题讨论】:

  • 将DirectoryIndex index.htm(或您的文件扩展名)添加到&lt;Directory /redmine&gt;。
  • 没有任何扩展名为 index 的文件。

标签: apache redmine


【解决方案1】:

更改目录路径:

<Directory "/redmine/public/">

在http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine查看有关Redmine的更多信息

【讨论】:

  • 试过了。不工作。此外,我无法按照您给我的链接中的说明进行操作,因为它在第一步中失败了。没有 dispatch.cgi.example。只有 dispatch.fcgi.example。我认为这也需要 fcgi,页面顶部确保不需要它。
【解决方案2】:

我遇到了这个问题,经过大量搜索后,这行有效 - 在您的 Apache 配置中添加以下行:

PassengerAppRoot /opt/redmine 

(更改解压 redmine 文件的路径)

请参阅此处了解说明: https://www.phusionpassenger.com/library/config/apache/reference/#passengerapproot

【讨论】:

  • 虽然此链接可能会回答问题,但最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接答案可能会失效。 - From Review
  • @Noel 否。请在审阅时阅读答案。这不仅仅是链接 - 它直接在答案中包含信息。
猜你喜欢
  • 1970-01-01
  • 2020-01-01
  • 1970-01-01
  • 2021-05-08
  • 2013-08-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多