title: Deploying rails with Passenger
body: <p>I wanted to deploy my app into my local server using apache and passenger. I installed all the pre-requisites like development libraries and passenger gem. Then I included these lines into my /etc/apache2/httpd.conf file;</p>
  
  <pre><code>PassengerRoot /home/insane-36/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11
  PassengerRuby /home/insane-36/.rvm/wrappers/ruby-1.9.3-p125/ruby
  </code></pre>
  
  <p>Now, I created a file inside /etc/apache2/sites-available  with name sampleapp and put the following contents into it;</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
   ServerName sampleapp
   RailsEnv development
   DocumentRoot /home/insane-36/Documents/Web/Rails/sampleapp/public
   &lt;Directory /home/insane-36/Documents/Web/Rails/sampleapp/public&gt;
    AllowOverride all
    Options MultiViews
    Order allow,deny
    Allow from all
   &lt;/Directory&gt; 
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I enabled the site and then added the hosts name into /etc/hosts file. But, when I try to browse the site now with its ServerName, it gives permission denied error as;</p>
  
  <pre><code>Forbidden
  
  You don't have permission to access / on this server.
  
  Apache/2.2.20 (Ubuntu) Server at sampleapp Port 80
  </code></pre>
  
  <p>I dont know what is wrong here. I have tried to do it multiple times editing the same files, disabling site, enabling the site, reloading apache. Please kindly suggest me the problem and the solution behind this thing. Thank you for your help in advance.</p>