title: Host multiple web sites on port 80
body: <p>So I may be missing a bit of a fundamental understanding on what's going on here, but I cannot get this to work.  I have two django websites, and I want to be able to host them both on the same box, both on port 80.  Is there some magic to get this to work properly?  Here's what my sites-available/default file looks like:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      WSGIScriptAlias / /path/to/proj/apache/django.wsgi
      AliasMatch ^/([^/]*\.css) /path/to/proj/static/
      Alias /media /path/to/proj/static/
      Alias /static/ /path/to/proj/static/
  
      ErrorLog ${APACHE_LOG_DIR}/error.log
      LogLevel warn
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      WSGIScriptAlias / /path/to/otherproj/apache/django.wsgi
  
      ErrorLog ${APACHE_LOG_DIR}/error2.log
      LogLevel warn
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Obviously this doesn't work since navigating to the site hits the first one and it never goes to the second one.  So my question is, how do I set this up so I can host 2 web sites on port 80.  Perhaps I could do like localhost/site1 and localhost/site2 and figure it out that way, but no matter what I try I can't seem to get that to work.</p>
  
  <p>I have played with the ServerName property, but I don't really understand how that can work, setting it doesn't seem to change that hitting the ip of that machine only shows the first website, and I don't know where using the ServerName affects anything.</p>
  
  <p>Any suggestions, or let me know if I need to give more information.</p>
  
  <p>Also note they both work if I change the second one to port 8080, but when doing that I can't seem to put a domain name on top of myip:8080.</p>