Project

General

Profile

Apache2 + Passenger 4.0.5 = Error 403, check my config

Added by Sebastian Sulger almost 8 years ago

I need to upgrade my Redmine installation. I'm on a Mac OS X Server 10.6.8 (unfortunately, this is a given - can't update the system to a new version right now).

In the process, I had issues with installing a new Ruby, and ended up with rbenv which now maintains everything Ruby on the system. Had some more trouble with updating Passenger, until I found out that they had dropped support for 10.6.8 a long time ago.

I was able to install Passenger (and its Apache2 module) in the end, albeit the same version I was running before the upgrade - so this is now 4.0.5. But it is running, and I was also able to confirm that my app (Redmine) is still there, in its updated form, through Passenger standalone. However, I'd like to serve Redmine through Apache, and all I get is a 403 error, with the Apache log saying the following:

[Mon Feb 06 18:00:13 2017] [error] [client XXX.XX.XX.XXX] Directory index forbidden by Options directive: /Library/WebServer/Documents/redmine/

Here are the contents of my conf file for the virtual host (somedomain hides my hostname):

<VirtualHost *:80>
   ServerName somedomain/redmine
   # !!! Be sure to point DocumentRoot to 'public'!
   DocumentRoot /Library/WebServer/Documents/redmine/public    
   <Directory /Library/WebServer/Documents/redmine/public>
     # This relaxes Apache security settings.
     AllowOverride all
     # MultiViews must be turned off.
     Options -MultiViews
  </Directory>
</VirtualHost>

My Redmine folder is in /Library/WebServer/Documents/redmine. Should it be somewhere else? It used to sit in /Library/WebServer/Ruby_Apps before. I'm currently not using the Passenger Preferences Pane. Can anyone point me towards a solution? Let me know if you need more information.

Thanks,
S