[Case 70709] How to get Apache 2.4 and Ruby on Rails to work together?

Eli L

Well-Known Member
Aug 9, 2007
61
1
58
Bellingham, Washington, United States
cPanel Access Level
Root Administrator
Compiling Apache 2.4 leads to the the the cpanel RoR redirects to not function as they should leading to unusable RoR apps (unless accessing the apps directly using the port).

I tried going through cpanel support (internal report #70709) but they seem to think its an apache bug.

So, has anyone had any success getting Apache 2.4 and RoR to work together? If so what steps did you take to get it to work?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

I do see that internal case 70709 is open to address this issue. I will update this thread with more information as it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Case 70709 is still open at this time. While there is no specific time frame on when a resolution will be made available, it's a task that cPanel's EasyApache team plans to address in the near future.

Thank you.
 

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
Hi everyone,

Here's some additional information the EasyApache team discovered in regards to this issue:

It looks like apache 2.4 is adding the index file name from DirectoryIndex directive to the URI.

Processing ApplicationController#index (for 10.1.4.77 at 2013-07-26 10:26:29) [GET]

ActionController::RoutingError (No route matches "/index.htm.var" with {:method=>:get}):

Rendering /home/rlb3/rails_apps/myapp/public/404.html (404 Not Found)

If rails is in production mode this shows up as a 404 error.

I would suggest adding "DirectoryIndex disabled" to you .htaccess. This should stop the unwanted behavior.
 

Eli L

Well-Known Member
Aug 9, 2007
61
1
58
Bellingham, Washington, United States
cPanel Access Level
Root Administrator
Hi everyone,

Here's some additional information the EasyApache team discovered in regards to this issue:

It looks like apache 2.4 is adding the index file name from DirectoryIndex directive to the URI.

Processing ApplicationController#index (for 10.1.4.77 at 2013-07-26 10:26:29) [GET]

ActionController::RoutingError (No route matches "/index.htm.var" with {:method=>:get}):

Rendering /home/rlb3/rails_apps/myapp/public/404.html (404 Not Found)

If rails is in production mode this shows up as a 404 error.

I would suggest adding "DirectoryIndex disabled" to you .htaccess. This should stop the unwanted behavior.
Thanks! Disabling that fixes the issue.