title: Setting Up a Rails Application on a Subdirectory of Joomla site
body: <p>I have a joomla site in my domain root, i.e www.myjoomlasite.com and I have a rails application in www.myrailssite.com/railsapp </p>
  
  <p>I want to deploy the rails application in a sub-directory of <a href="http://www.myjoomlasite.com" rel="nofollow">http://www.myjoomlasite.com</a>, expecting that rails application will be available in  <a href="http://www.myjoomlasite.com/railsapp" rel="nofollow">http://www.myjoomlasite.com/railsapp</a>.</p>
  
  <p>After doing all necessary steps when i click, <em>www.myjoomlasite.com/railsapp</em> in browser, it redirect me correctly to <a href="http://www.myjoomlasite.com/railsapp/admins/sign_in" rel="nofollow">http://www.myjoomlasite.com/railsapp/admins/sign_in</a> </p>
  
  <p>Then in spite of displaying the <strong>sign_in</strong> page, it displayed joomla's error page  "404 page not found"   </p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>If anything wrong with the rails application it should display rails
  error page, but why joomla's error page?</li>
  <li>In rails application production log why it showing  <strong>Completed 401 Unauthorized in 1ms</strong> ?</li>
  <li>How can i deploy rails application in a sub-directory of my joomla site?</li>
  </ol>
  
  <p><strong>Additional information:</strong></p>
  
  <p>rails application production log</p>
  
  <pre><code>Started GET "/railsapp" for 24.5.7.81 at 2012-09-14 08:41:36 -0700
  Processing by HomeController#index as HTML
  Completed 401 Unauthorized in 1ms
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have found the possible reason behind '404'. I have .htaccess file in document root. This .htaccess file stoping rails application to render.</p>
  
  <p>Is it possible make some changes in .htaccess file show that, rails app can render properly?  </p>