title: Forward Apache ssl port 443 to Tomcat http port
body: <p>I have my tomcat running as standalone in my linux box on port 7778. I have configured apache to run on ssl on port 443. </p>
  
  <p>My httpd.conf is as below:</p>
  
  <pre><code>    Listen 80
  &lt;VirtualHost *:80&gt;
      ServerName www.domain.com
      Redirect / https://www.example.com
  &lt;/VirtualHost&gt; --&gt;
  ProxyPass         /  http://localhost:7778/website
  ProxyPassReverse  /  http://localhost:7778/website
  </code></pre>
  
  <p>My ssl.conf is as below:</p>
  
  <pre><code>Listen 443
  &lt;VirtualHost _default_:443&gt;
  SSLEngine on
  SSLCertificateFile    /path/to/certificate/file
  SSLCertificateKeyFile /path/to/key
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>My server.xml connector is as below:</p>
  
  <pre><code>&lt;Connector port="7778" protocol="HTTP/1.1"
                  proxyName="www.domain.com" proxyPort="80" /&gt;
  </code></pre>
  
  <p>Issue is my Apache is not able to redirect to Tomcat on 7778 port and gives 503 error. </p>