Hello All, I have configured my tomcat7 to use SSL successfully on port 8443.
Now I want to accept for 443 port only I am using apache2 in front of it.
I added virtual host and this is the content:
ServerName example.com ServerAlias *.example.com ProxyPreserveHost on ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> SSLEngine on SSLProxyEngine on SSLVerifyClient None SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/example.com/fullchain.pem ProxyPass / http://localhost:8443/ ProxyPassReverse / http://localhost:8443/ RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Port "443"
but I got this when I tried to connect to https://localhost
503 proxy Error the proxy server received an invalid response from an upstream server.
Also Should I configure certificate location for Apache also or just tomcat 7.
And How can I redirect any HTTP traffic to HTTPS.