title: Issues Setting up a reverse proxy in Apache
body: <p>My roommate and I each have a separate webserver we are trying to set up. We are trying to use mod_proxy so that his server will forward requests to my machine (we have two seperate machines behind one router) based on the server name. I've given the basics of what we have in our apache config currently but we are getting a 403 Forbidden error when trying to access the second domain (the first, www domain, works fine).</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;VirtualHost *:80&gt;
   DocumentRoot /var/www
   ServerName www.&lt;domain1&gt;.com
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
   ProxyPreserveHost On
   ProxyPass / http://&lt;IP addr of other box&gt;:80
   ProxyPassReverse / http://&lt;IP addr of other box&gt;:80
   ServerName &lt;dummydomain&gt;.gotdns.com
  &lt;/VirtualHost&gt;
  </code></pre>