Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning rails app from a subDir on Apache with Passenger
    primarykey
    data
    text
    <p>I've already spent a few hours thoroughly trying to find an answer. The guys from Site5 who provide the hosting hit a wall.</p> <p>What I'm trying to do: Run the reils app from playplanit[dot]com/sfcal and not from playplanit[dot]com/. </p> <p>The current setup: - The app itself is here: /home/playplan/apps/ppi/current/ - In .htaccess file PassengerEnabled on PassengerAppRoot /home/playplan/apps/ppi/current - The public files are in the public_html (previously the were here /home/playplan/apps/ppi/current/public and public_html was a sym link, but I changed that because the whole point of making this change is so that I can run a Wordpress blog in the docRoot</p> <p>What has been tried: - Creating a sym link: sfcal/ -> /home/playplan/apps/ppi/current/public - Adding RailsBaseURI /sfcal to .htaccess file - Attempting to change all 'paths' in routes.rb Here's the rake routes output after paths I could think to change where changed: <a href="http://cl.ly/2N2Q2z0N332v2B2F3r38" rel="nofollow">http://cl.ly/2N2Q2z0N332v2B2F3r38</a> - I thought that maybe map.root need to be changed somehow, but couldn't and then one of the technicians helping me added this line to environment.rb: config.action_controller.relative_url_root = "/sfcal" - Accoring to them nothing needs to be change in the httpd.conf file - I've also tried restarting the app by creating a restart.txt file in tmp/</p> <p>I know that the sym link works, but something in the app recognizes that it's a subDir and will serve up a 404 that sits in the 'public' dir. </p> <p>Any ideas of what else needs configuring?</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload