Redmine with Apache 2 + Passenger nightmare --- site is up and available, but Redmine doesn't execute
I was determined to figure this out myself, but I've been at it for a total of more than 10 hours, and I just can't figure this out. First, let me detail my environment (which I cannot change):
- Server version: Apache/2.2.15 (Unix)
- Ruby version: ruby 1.9.3p448
- Rails version: Rails 4.0.1
- Passenger version: Phusion Passenger version 4.0.5
- Redmine version: 2.3.3
I have followed the Redmine instructions all the way through the test webserver to check that installation was successful with this command: ruby script/rails server webrick -e production
The roadblock which I cannot overcome is getting Apache and Passenger to interpret and properly serve Redmine. I have searched pretty much every possible link within the first 10 pages or so of Google results. Everywhere I go I come across conflicting/contradicting/outdated information.
We have a "weird" setup with Apache (which I inherited and cannot change). Redmine needs to be served through SSL, but Apache already has another website it's serving through SSL called Twiki. By "weird", what I mean is that our file structure is entirely different from all the tutorials out there on this version of Apache which have directories like "available-sites" and such.
Here are the abbreviated versions of some of our config files:
/etc/httpd/conf/httpd.conf (the global configuration file --- note that NO VirtualHost is defined here):
LoadModule passenger_module /usr/local/pkg/ruby/1.9.3-p448/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
So just to clarify, the above httpd.conf file does NOT have a VirtualHost section.
/etc/httpd/conf.d/ssl.conf (defines the VirtualHost for ssl):
/etc/httpd/conf.d/twiki.conf (this works just fine --- note this does NOT define a VirtualHost):
ScriptAlias /twiki/bin/ "/var/www/twiki/bin/"
Alias /twiki/ "/var/www/twiki/"
Deny from all
AuthName "our team"
...a lot of ldap and authorization stuff
Options ExecCGI FollowSymLinks
Alias /redmine/ "/var/www/redmine/public/"
Options Indexes ExecCGI FollowSymLinks
Allow from all
The amazing thing is that this doesn't completely NOT work: I can successfully open up
https://someserver/redmine/ with SSL and the
https://someserver/twiki/ site remains unaffected. This tells me that it IS possible to have two separate sites up with one SSL configuration, so I don't think that's the problem.
The problem is is that it opens up to the file index. I can navigate around my Redmine file structure, but no code ever gets executed. For example, there is a file included with Redmine called dispatch.fcgi in the public folder.
https://someserver/redmine/dispatch.fcgi opens, but just as plain text code in the browser. As I understand it, in the case of using Passenger, CGI and FastCGI stuff is irrelevant/unused.
© Server Fault or respective owner