Ok for me it meant i ran rails 2.3 and used phusion passenger 5.x
Apparently, 5.x does not work with 2.2 at all and requires 2.3 to be copied in the config.ru file in order for it to use the rack for the backend.
Example config.ru file for version 2.3:
# Rack Dispatcher
I could not understand why no spells seemed to work, it was like the Passenger ignored my rail application.
In my / var / log / apache 2 / error.log file, I had the following:
[Mon May 11, 15: 47: 00.397891 2015] [autoindex: error] [pid 17490: tid 3058694976] [client 216.49.181.251:49248] AH01276: Unable to specify the directory / home / x / y / railsapp / public /: Not Found IndexIndex directories (index.html, index.cgi, index.pl, index.php, index.xhtml, index.htm) and server index directories using the Options, referer directive: https://www.google. com /
What baffled me, apparently, meant that "the passenger is not working on this virtual host."
If I created the public / index.html file, apache did a great job of this, so the problem was not resolved.
I also saw this, which meant that the passenger started normally:
[2015-05-11 18: 23: 53.9594 4964 / b7415700 agent / Watchdog / Main.cpp: 728]: All Phusion Passenger agents are running!
See also https://www.phusionpassenger.com/documentation/Users%20guide%20Apache%204.0.html#_i_get_a_403_forbidden_error
So, basically with the 5.x passenger (the release notes say that rails 2.2 is not supported, 2.3 is only supported if you create the config.ru file in the root of your rails application. It works with older versions of the rack, such as rails 2.3 require, just remove your new pearl and install 1.1.6, or do not remove, if any, prefabricated racks GL!
Just like a note, this message is:
[Mon May 11 18: 25: 10.235574 2015] [core: alert] [pid 5263: tid 3017780032] [client 127.0.0.1/106737-03/home/rdp/dev/prod_flds/public/.htaccess: Invalid "RewriteEngine" command , possibly with an error or determined by a module not included in the server configuration
means "delete your public /.htaccess file, which the passenger usually does not need"