Project

General

Profile

Redmine install almost functioning, but no home page

Added by kevin hua about 9 years ago

Is this by default? I've installed redmine 3.1.1 on archlinux with ruby 2.2.3p173 (2015-08-18 revision 51636) with apache 2.4 and passenger 5.0.20. Here's what I've added to the default httpd.conf.

LoadModule passenger_module /root/.gem/ruby/2.2.0/gems/passenger-5.0.20/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
    PassengerRoot /root/.gem/ruby/2.2.0/gems/passenger-5.0.20
   PassengerDefaultRuby /usr/bin/ruby
</IfModule>

<VirtualHost *:80>
    DocumentRoot /usr/share/webapps/redmine/public
    <Directory /usr/share/webapps/redmine/public>
        require all granted
        Options -MultiViews
        Allow from all
    </Directory>
</VirtualHost>

when I visit localhost/login, or localhost/projects, it works fine. However, when I visit just localhost, I get

Access forbidden!You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.17 (Unix) Phusion_Passenger/5.0.20

and
[Tue Oct 20 15:00:00.247266 2015] [autoindex:error] [pid 10537:tid 140107302549248] [client ::1:39796] AH01276: Cannot serve directory /usr/share/webapps/redmine/public/: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive

in the error log.


Replies (4)

RE: Redmine install almost functioning, but no home page - Added by Anonymous about 9 years ago

same on redmine 2.4.2 with passenger 4.0.37 after an apache update (i'v recompiled the passenger module too) :/

RE: Redmine install almost functioning, but no home page - Added by Martin Denizet (redmine.org team member) about 9 years ago

Could it be because you are missing the following statements in the VirtualHost?

RailsBaseURI /
PassengerAppRoot /usr/share/webapps/redmine

Hope it helps.

RE: Redmine install almost functioning, but no home page - Added by Anonymous about 9 years ago

My macro :

    Alias /redmines/$name/ /www/redmines/$name/htdocs/public/
    <Directory /www/redmines/$name/htdocs/public>
        AllowOverride All
        Options -MultiViews
        Require all granted

        SetEnv PATH "#{ENV['PATH']}:/usr/local/bin" 
        SetEnv RAILS_ENV production

        PassengerResolveSymlinksInDocumentRoot on
    </Directory>

    <Location /redmines/$name>
        RailsBaseURI /redmines/$name
        PassengerBaseURI /redmines/$name
        PassengerAppRoot /www/redmines/$name/htdocs
    </Location>

RE: Redmine install almost functioning, but no home page - Added by Bintintan Andrei over 7 years ago

Any other solution for this?

Related answers:
https://stackoverflow.com/questions/33222480/apache-redmine-403-premissions-are-good

I had to disable the autoindex module in apache to make it work.

See https://serverfault.com/a/731859

Disabling the module auto index (which is the cause of the wrong behaviour, will prevent the error.

#LoadModule autoindex_module modules/mod_autoindex.so
    (1-4/4)