Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've have followed all the steps to install Redmine on CentOS 5, except for the Apache part:

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

I do not want to configure a virtualhost as we are not using virtual hosts.

Can I configure Redmine to run with http://hostname/redmine?

Apparently it doesn't work for my case.

Redmine was extracted in to the webserver document root /var/www/html/ called /var/www/html/redmine

What I did was added a redmine.conf to /etc/httpd/conf.d/ with the following configuration and restarted the server:

<Location "/redmine">
    Options Indexes ExecCGI FollowSymLinks -MultiViews
    Order allow,deny
    Allow from all
    AllowOverride all

    PassengerEnabled On
    RailsBaseURI /var/www/html/redmine
    RailsEnv production
</Location>

now i got this error

Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.

Error message: No such file or directory - config/environment.rb Exception class: Errno::ENOENT Application root: /var/www/html

Where have I gone wrong?

share|improve this question
add comment

3 Answers

To suppress directory listings remove the Indexes option from your Options list.

share|improve this answer
add comment

RailsBaseURI is wrong, It should be this

RailsBaseURI /var/www/html/redmine/public
share|improve this answer
    
Ammended it, restart httpd, but i'm still getting the folder list ... –  flyclassic Mar 21 '12 at 3:33
add comment

Here is mine. I use a symlink for redmine at /var/www/html/redmine .

PassengerResolveSymlinksInDocumentRoot on
RailsBaseURI /redmine
<Directory /var/www/html/redmine>
    Allow from all
    Options -MultiViews
    PassengerUser redmine
    PassengerGroup redmine
</Directory>

<Location /redmine/sys>
    Order deny,allow
    Allow from 127.0.0.1
    Deny from all
</Location>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.