title: Apache Name Virtual Host with SSL
body: <p>I am attempting to setup our servers to allow traffic over SSL. I am aware that SSL does not work with Name Virtual Host, but we have all of our Apache servers on virtual machines with dedicated private IPs. We have a primary virtual machine that has mod_proxy setup to route traffic to the appropriate VMs.</p>
  <p>However, in order to route HTTPS traffic we need to have the certificate installed on the proxy as well as the VMs. We have a wildcard certificate that can be used across all of our hosts. Everything appears to work properly, but I receive the following in the Apache logs for the proxy:</p>
  <p>[warn] Init: SSL server IP/port conflict: <code>host1.example.com:443</code> (/etc/apache2/sites-enabled/host1:1) vs. <code>host2.example.com:443</code> (/etc/apache2/sites-enabled/host2:1)</p>
  <p>There is one of these error message for each host we have setup on the proxy. Our Virtual Host setup for the proxy is posted below:</p>
  <pre><code>&lt;VirtualHost ipaddress:443&gt;
      ServerName host1.example.com
      ProxyPreserveHost On
      ProxyRequests Off
      ProxyPass / https://privateip:443/
      ProxyPassReverse / https://privateip:443/
  
      SSLProxyEngine on
      SSLEngine on
      SSLCertificateFile /etc/ssl/certs/server.crt
      SSLCertificateKeyFile /etc/ssl/private/server.key
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>Is there any way that I can get this to work?</p>