title: Is it possible to ignore an Apache proxy'd certificate
body: <p>For background information: (Question at bottom)</p>
  
  <p>I'm trying to connect to a client, who has 8 servers, all of which have unique IP addresses. The client uses the same SSL certificate on all the servers (for this example, cert name == www.all_servers.com). The client only allows incoming requests over https.</p>
  
  <p>I'm trying to create an apache proxy using mod_proxy that maps different URI mappings to different servers. For example:</p>
  
  <pre><code>https://PROXY_SERVER/SERVER1/{REQUEST}
  </code></pre>
  
  <p>This would send {REQUEST} to server1</p>
  
  <pre><code>https://PROXY_SERVER/SERVER2/{REQUEST}
  </code></pre>
  
  <p>would send {REQUEST} to server2.
  So far, pretty simple.</p>
  
  <p>In Apache 2.2, this could be achieved by using the IP addresses like so:</p>
  
  <pre><code>SSLProxyEngine On
  
  ProxyPass /server1 https://1.1.1.1/
  ProxyPassReverse /server1 https://1.1.1.1/
  
  ProxyPass /server2 https://1.1.1.2/
  ProxyPassReverse /server2 https://1.1.1.2/
  </code></pre>
  
  <p>This was due to Apache 2.2 not checking if the certificate matched (1.1.1.1 != www.all_servers.com)</p>
  
  <p>However, in Apache 2.4, I'm now getting certificate issues (rightly so). (This exact code works on an apache 2.2 box)</p>
  
  <pre><code>[Thu Oct 10 12:01:48.571246 2013] [proxy:error] [pid 13282:tid 140475667224320] (502)Unknown error 502: [client 192.168.1.1:48967] AH01084: pass request body failed to 1.1.1.1:443 (1.1.1.1)
  [Thu Oct 10 12:01:48.571341 2013] [proxy:error] [pid 13282:tid 140475667224320] [client 192.168.1.1:48967] AH00898: Error during SSL Handshake with remote server returned by /server1/asd
  [Thu Oct 10 12:01:48.571354 2013] [proxy_http:error] [pid 13282:tid 140475667224320] [client 192.168.1.1:48967] AH01097: pass request body failed to 1.1.1.1:443 (1.1.1.1) from 192.168.1.1 ()
  </code></pre>
  
  <p>I can't use /etc/hosts, as one server would work, using:</p>
  
  <pre><code>1.1.1.1 www.all_servers.com
  
  SSLProxyEngine On
  ProxyPass /server1 https://www.all_servers.com/
  ProxyPassReverse /server1 https://www.all_servers.com/
  </code></pre>
  
  <p>But many servers wouldn't</p>
  
  <hr>
  
  <p><strong>So, to the actual question:</strong></p>
  
  <p>Is there a way to force mod_proxy to ignore miss-matching certificates. Or, is there a better way to do this.</p>
  
  <p>Thanks for any help with this!</p>