title: How do I mix ip and name based virtualhosts on the same server?
body: <p>I currently have a production site on my server and i'm looking to add a development site. The production site is using the only ip address I have for a single domain SSL certificate. Is there a way I can add the development site without purchasing another ip. I don't necessarily need SSL for the development site. Perhaps a mix of ip and name based virtualhosts? The current setup is as follows:</p>
  
  <pre><code># Production
  NameVirtualHost 123.45.678.910:80
  
  &lt;VirtualHost 123.45.678.910:80&gt;
    DocumentRoot /var/www/html/production
    ServerName www.example.com
  &lt;/VirtualHost&gt;
  
  NameVirtualHost 123.45.678.910:443
  
  &lt;VirtualHost 123.45.678.910:443&gt;
    DocumentRoot /var/www/html/production
    ServerName www.example.com
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Thanks
  Paul</p>
  
  <p>EDIT</p>
  
  <p>Would something like this work?</p>
  
  <pre><code># Production
  NameVirtualHost 123.45.678.910:80
  
  &lt;VirtualHost 123.45.678.910:80&gt;
    DocumentRoot /var/www/html/production
    ServerName www.example.com
  &lt;/VirtualHost&gt;
  
  NameVirtualHost 123.45.678.910:443
  
  &lt;VirtualHost 123.45.678.910:443&gt;
    DocumentRoot /var/www/html/production
    ServerName www.example.com
  &lt;/VirtualHost&gt;
  
  # Development
  
  &lt;VirtualHost 123.45.678.910:80&gt;
    DocumentRoot /var/www/html/development
    ServerName dev.example.com
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Or would I need to use a different port, maybe 8080?</p>