title: Deploy Django on Apache virtual host: 404
body: <p>I know there are a lot of articles talking about this issue, but I keep getting a 404 error when deploying a Django site through Apache virtual host. Here is my .conf file:</p>
  
  <pre><code>Listen 8001
  &lt;VirtualHost *:8001&gt;
    ServerName www.myhostname.com/basic
    ServerAdmin caisj@example.com
  
    ProxyRequests Off
    &lt;Proxy *&gt;
      Order deny,allow
      Allow from all
    &lt;/Proxy&gt;
  
    DocumentRoot /home/browser/BASIC/basic
  
    Alias /static /home/browser/BASIC/basic/static
    Alias /media /home/browser/BASIC/_py/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/contrib/admin/media
  
    WSGIScriptAlias /basic /home/browser/BASIC/basic/basic.wsgi
    ErrorLog /home/browser/BASIC/basic/log/basic.error.log
  
    LogLevel info
    CustomLog /home/browser/BASIC/basic/log/basic.access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I have tried different combinations of the "ServerName" and other parameters, but when visiting www.myhostname.com/basic, I keep getting a 404 error. The Apache restarts successfully and the log file contains no clues. </p>
  
  <p>Or could anybody help to tell where to find errors? Thanks.</p>