title: Apache Httpd as SSL termination proxy
body: <p>I would like to setup my Httpd as SSL termination proxy for my embedded Jetty.</p>
  
  <p>I found this <a href="http://www.nczonline.net/blog/2012/08/08/setting-up-apache-as-a-ssl-front-end-for-play/" rel="noreferrer">article</a>, however, it is not working for my configurations. With the following in my httpd-vhosts.conf, I can access <code>http://mysite:9023</code> by <code>http://app.mysite</code>. However, I am not able to access <code>http://mysite:9023</code> by <code>https://app.mysite</code>.</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost *:80&gt;
      ServerName app.mysite
      ServerAlias www.app.mysite
      ProxyPreserveHost On
      &lt;Proxy *&gt;
          AddDefaultCharset Off
          Order deny,allow
          Allow from all
      &lt;/Proxy&gt;
      ProxyPass / http://mysite:9023/
      ProxyPassReverse / http://mysite:9023/
  &lt;/VirtualHost&gt;
  
  NameVirtualHost *:443
  &lt;VirtualHost *:443&gt;
      ServerName app.mysite
      ServerAlias www.app.mysite
      ProxyPreserveHost On
      SSLEngine On
      SSLCertificateFile    "C:\apache\httpd\conf\server.crt"
      SSLCertificateKeyFile "C:\apache\httpd\conf\server.key"
      &lt;Location /&gt;
          SSLRequireSSL
      &lt;/Location&gt;
     ProxyPass / http://mysite:9023/
     ProxyPassReverse / http://mysite:9023/
  &lt;/VirtualHost&gt;
  </code></pre>