Friday, October 12, 2018

Cannot get to redirect apache on port 80 to tomcat 8443

My virtual hosts in Apache 2.4 For the regular website on Apache 2.4 port 80




ProxyPreserveHost On
ProxyRequests Off
ServerName trident.openways.us
ServerAlias openways.us/Trident
ProxyPass / https://openways.us:8443/Trident

ProxyPassReverse / https://openways.us:8443/Trident
Redirect Permanent /Trident https://openways.us:8443/Trident



To redirect calls on port 80 to Tomcat SSL



  
ServerName trident.openways.us
ServerAlias openways.us/Trident
ProxyRequests on

ProxyPreserveHost On

Order deny,allow
Allow from all

SSLProxyEngine on
ProxyPass /Trident https://openways.us:8443/Trident
ProxyPassReverse /Trident https://openways.us:8443/Trident




My Tomcat server.xml



           connectionTimeout="20000"  
redirectPort="8443" />

SSLCertificateFile="C:\wamp\bin\apache\Apache2.4.4\conf\extra\openways.us_ssl_certificate.cer"
SSLCertificateKeyFile="C:\wamp\bin\apache\Apache2.4.4\conf\extra\_.openways.us_private_key.key"

SSLPassword="changeit"
SSLCertificateChainFile="C:\wamp\bin\apache\Apache2.4.4\conf\extra\-.openways.us_ssl_certificate_INTERMEDIATE.cer"
keyAlias="tomcat" SSLProtocol="TLSv1"/>





Despite different configurations tested, my investigation on the web, I can not get them to work, except when the redirection is done to




http://openways.us:8080/Trident, but then without SSL



Please help recommending me the correct configuration or place to investigate

No comments:

Post a Comment