title: Not a valid directory (didn't found the answer on the net)
body: <p>Here is my question i have made a standard rail and redmine installation under ubuntu 12.
  And i have this error :
  The directory "/var/www" does not appear to be a valid Ruby on Rails application root. </p>
  
  <p>It seems to be a common error but no solution on the net :
  <a href="http://www.google.fr/search?q=The+directory+%22%2Fvar%2Fwww%22+does+not+appear+to+be+a+valid+Ruby+on+Rails+application+root.+&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:fr:official&amp;client=firefox-a" rel="nofollow">http://www.google.fr/search?q=The+directory+%22%2Fvar%2Fwww%22+does+not+appear+to+be+a+valid+Ruby+on+Rails+application+root.+&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:fr:official&amp;client=firefox-a</a></p>
  
  <p>Here is my default file :</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerAdmin webmaster@localhost
  
          DocumentRoot /var/www
  
  
  &lt;Directory /&gt;
                  Options FollowSymLinks
                  AllowOverride None
          &lt;/Directory&gt;
          &lt;Directory /var/www/&gt;
                  Options Indexes FollowSymLinks MultiViews
                  AllowOverride None
                  Order allow,deny
                  allow from all
          &lt;/Directory&gt;
  
          ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
          &lt;Directory "/usr/lib/cgi-bin"&gt;
                  AllowOverride None
                  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                  Order allow,deny
                  Allow from all
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
  
          # Possible values include: debug, info, notice, warn, error, crit,
          # alert, emerg.
          LogLevel warn
  
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  
      &lt;Directory "/usr/share/doc/"&gt;
          Options Indexes MultiViews FollowSymLinks
          AllowOverride None
          Order deny,allow
          Deny from all
          Allow from 127.0.0.0/255.0.0.0 ::1/128
      &lt;/Directory&gt;
  
  PassengerDefaultUser www-data
  RailsEnv production
  RailsBaseURI /redmine
  &lt;Directory /var/www/redmine/&gt;
  
  AllowOverride None
  AddHandler fcgid-script .fcgi
  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  Order allow,deny
  Allow from all
  
  PassengerEnabled on
  RailsBaseURI /redmine
  PassengerResolveSymlinksInDocumentRoot on
  &lt;/Directory&gt;
  
  
  &lt;/VirtualHost&gt;
  Include /etc/apache2/mods-available/passenger.conf
  </code></pre>
  
  <p>and my passenger.conf :</p>
  
  <pre><code>&lt;IfModule mod_passenger.c&gt;
    PassengerRoot /usr
    PassengerRuby /usr/bin/ruby
    PassengerDefaultUser www-data
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And i don't understand why ...
  Regards
  Bussiere</p>