Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Check Passenger documentation <a href="https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/#deploying-an-app-to-a-sub-uri" rel="nofollow">Deploying to a sub URI</a>.</p> <p><strong>EDIT</strong> </p> <p>All you need is to follow Passenger documentation. Your needn't mess with rails routes or move you application <code>public</code> folder.</p> <p>Suppose you have you rails app deployed to <code>/home/playplan/apps/ppi/current</code> and <code>/home/playplan/public_html</code> directory is root of your virtual host with following Apache configuration: </p> <pre><code>&lt;VirtualHost *:80&gt; ServerName playplanit.com DocumentRoot /home/playplan/public_html &lt;Directory /home/playplan/public_html&gt; Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>To have your application accessible from <a href="http://playplanit.com/sfcal" rel="nofollow">http://playplanit.com/sfcal</a> your need to do following:</p> <ul> <li><p>Make sure that Apache <code>Options FollowSymLinks</code> and <code>AllowOverride Options</code> is enabled in httpd.conf for your <code>VirtualHost</code> or following won't work. </p></li> <li><p>Create link named as <code>sfcal</code> in <code>public_html</code> directory pointing to your rails <code>public</code> directory.</p></li> </ul> <p><code>ln -s /home/playplan/apps/ppi/current/public /home/playplan/public_html/sfcal</code></p> <ul> <li><p>Add following to <code>/home/playplan/public_html/.htaccess</code> </p> <pre><code>RailsBaseURI /sfcal </code></pre></li> <li><p>Place following into <code>/home/playplan/public_html/sfcal/.htaccess</code></p> <pre><code>Options -MultiViews </code></pre></li> </ul>
 

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