tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TED SPRADLEY <ted.k.sprad...@gmail.com>
Subject Proxy Apache https to Tomcat http
Date Wed, 05 Oct 2016 19:42:13 GMT
Tomcat 7.0.68
Apache 2.4.6
CentOS  7.2.1511

Problem: A Tomcat application at context "/mycontext" on port 8081 running
through Apache proxy renders as expected when using
http://example.com/mycontext but https://example.com/mycontext call renders
"The requested URL /mycontext/ was not found on this server."

Question: Do I have a Tomcat Connector configuration problem? Or an Apache
proxy configuration problem? Or an Apache ssl.conf problem?

Note: the CA issued certificate appears to be properly installed as evidence
by the lock icon in the url bar displaying "Verified by Š " when doing a
mouseover.

Files:
Httpd.conf -
<VirtualHost *:80>
  ServerName www.example.com
  ServerAlias *.example.com
  ProxyRequests off
  ProxyPass         /mycontext  http://example.com:8081/mycontext
  ProxyPassReverse  /mycontext  http://example.com:8081/mycontext
</VirtualHost>
<VirtualHost *:443>
  ProxyRequests off
  ProxyPreserveHost on
  SSLEngine on
  SSLCertificateFile /path/to/certs/ca.crt
  SSLCertificateKeyFile /path/to/key/private/exampleDotCom.key
  ServerName www.example.com
  ServerAlias *.example.com
  ProxyPass /mycontext http://example.com:8081/mycontext
  ProxyPassReverse /mycontext http://example.com:8081/mycontext
</VirtualHost>
Tomcat's server.xml Connector
 <Connector port="8081" protocol="HTTP/1.1"
        connectionTimeout="20000"
        proxyName="www.example.com"
        proxyPort="80"
        redirectPort="8443"
        xpoweredBy="false"
        server="Apache TomEE" />
Ssl.conf -
SSLEngine on

SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA

SSLCertificateFile /path/to/certs/ca.crt

SSLCertificateKeyFile /path/to/key/private/exampleDotCom.key

SSLCACertificateFile /path/to/bundle/ca_bundle.crt



Thank you,

Ted S.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message