Redmine with apache (cgi) - Directory index forbidden

Added by Slawek O over 9 years ago

Hello,
I'm new to redmine, I have been using trac by my developers want to try redmine.
I have installed (on FC5) ruby-1.8.5.35-2.fc5, rubygems-0.9.2-1.fc5
rails 2.0.2 and latest redmine.
It is working with Webrick.

By when I'm trying to access it by apache directly 9not through Webrick) I'm getting apache default Apacge webpage and error in log:
[Mon May 26 17:02:28 2008] [error] [client ] Directory index forbidden by Options directive: /var/www/redmine-0.7/public/

<VirtualHost 83.142.195.114:80>
SetEnv RAILS_ENV production
ServerName redmine.mydomain.com
DocumentRoot /var/www/redmine-0.7/public
<Directory /var/www/redmine-0.7/public/>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/httpd/error/redmine.mydomain.com.error_log
CustomLog /var/log/httpd/redmine.mydomain.com.log combined env=!image
</VirtualHost>

I would appreciate any help.
regards
Slawek

Replies (2)

RE: Redmine with apache (cgi) - Directory index forbidden - Added by Bill Hacker over 9 years ago

I've rahter poor luck with (x)CGI - ing Rails apps.

Suggest mongrel_cluster + the reverse-proxy of your choice.

But first thing you should check is the file and directory perms..

Directories w/o a world-x bit cannot be searched.

CGI wants a world-x bit ELSE will do nothing / throw an error..

.. OR MAY display the file as text or download it...

;-)

HTH

Bill

RE: Redmine with apache (cgi) - Directory index forbidden - Added by Slawek O over 9 years ago

I have all redmine rootdir owned by apache.apache and 755, so it must be something else ?
Does anybody have it working as cgi with apache ?

(1-2/2)