Jul 22 2009

Site5 Wordpress Phusion Passenger and Rails

Published by Stephen at 8:36 am under Uncategorized

I recently created a little toy rails app to see how easy it was to bring up rails with Site5’s Phusion Passenger. Following the instructions at first everything went as planned and my rails app was working flawlessly.

A few days later I was writing a 2nd rails app and noticed a Wordpress 404 error whenever I asked for a route other than the root URL. I tried my original rails app and it was broken also. I hadn’t touched a thing.

After a chat session with Site5 support (awesome response), it wasn’t resolved. Their level 1 support said it was my .htaccess file, and provided no other help (poor response).

After opening a ticket myself and providing them my .htaccess, environment.rb and symlink they again said it was my .htaccess file, but this time it was my public_html .htaccess file that was wrong. But still no other url or hint.

Turns out my public_html .htaccess file has some wordpress rewrite rules in it. I needed to exclude the rails subdirectories so that wordpress wouldn’t see them.

Here’s what I added to my public_html .htaccess
RewriteCond %{REQUEST_URI} !^/rails_app_name/

11 responses so far

11 Responses to “Site5 Wordpress Phusion Passenger and Rails”

  1. Derosaon 08 Mar 2010 at 11:59 pm

    Skoro eto sluchitsya

  2. Ngaon 13 Mar 2010 at 10:14 am

    rano ne pozdno

  3. Ferasaon 13 Mar 2010 at 3:13 pm

    press releases

  4. Ngaon 15 Mar 2010 at 9:14 pm

    vim to very

  5. jorgon 18 Apr 2010 at 11:48 pm

    At last it happens!

  6. Sashaon 19 Apr 2010 at 8:33 pm

    Excellent news

  7. ??????? ??? ???on 25 Apr 2010 at 2:02 pm

    ??????? ???????…

    ????????? ????????-?????????? ?????? ???? ??????? ????? ??????? ????? ? ???? ?????

  8. Marlonon 04 May 2010 at 2:04 pm

    ??? ??????? ?? ???? ???????, ? ???? ?? ????…

    ? ? ? ?? ???? ??? ?????? ????? ??????? ???????? ???????

  9. ?????on 29 May 2010 at 2:00 pm

    ???.

    ? ???

  10. Lighton 07 Jun 2010 at 7:44 pm

    http://rel” rel=”nofollow”>???? ?? ????…

    ?????? ??? ?? ??????? ????????????…

  11. Freemanon 16 Jun 2010 at 8:50 am

    ?????? ????! thomas@sotkashop.ru” rel=”nofollow”>……

    ? ?????????,…

Trackback URI | Comments RSS

Leave a Reply