title: laravel virtualhost 404 error
body: <p>I have apache2 on my ubuntu server.</p>
  
  <p>There is my /etc/apache2/sites-available/laravel.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName http://laravel.mysite.com/
      DocumentRoot "/var/www/laravel/public"
      &lt;Directory "/var/www/laravel/public"&gt;
          AllowOverride all
          Order allow,deny
        　Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and I have open the apache's mod_rewrite function.</p>
  
  <p>There is my /var/www/laravel/app/routes.php</p>
  
  <pre><code>&lt;?php
  Route::get('/', function()
  {
      return View::make('home/index');
  });
  Route::get('/hehe', function()
  {
      return "hehe';
  });
  </code></pre>
  
  <p>There is my /var/www/laravel/public/.htaccess</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect Trailing Slashes...
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>and now, I can visit the <a href="http://laravel.mysite.com" rel="nofollow">http://laravel.mysite.com</a>, but when I visit the <a href="http://laravel.mysite.com/hehe" rel="nofollow">http://laravel.mysite.com/hehe</a>, it gives the 404 error. Is there anything I config wrong?</p>