Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73401 invoked from network); 5 Feb 2007 14:54:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2007 14:54:12 -0000 Received: (qmail 77484 invoked by uid 500); 5 Feb 2007 14:54:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 77428 invoked by uid 500); 5 Feb 2007 14:54:01 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 77417 invoked by uid 99); 5 Feb 2007 14:54:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 06:54:00 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [198.143.254.218] (HELO NACDMAIL.NORTHLANDCC.NET) (198.143.254.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 06:53:50 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C74935.65AD7BA2" Subject: AJP Connector - Problems Proxying HTTPS Connections Date: Mon, 5 Feb 2007 09:53:27 -0500 Message-ID: <690BA3B35A2861419CBF6833BD537AD22433F3@nacdmail.NORTHLANDCC.NET> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AJP Connector - Problems Proxying HTTPS Connections Thread-Index: AcdJNWTuRPpva+gmTmq/fL/K+UERiA== From: "Bill Bailey" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C74935.65AD7BA2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I am trying to run Tomcat 5.5.20 behind Win32 Apache HTTPD 2.2.4 with SSL (downloaded from apachelounge.com) using the AJP connector.=20 =20 I have a virtual host configured on both Tomcat and Apache HTTPD. =20 Everything works fine if I configure my Apache HTTPD virtual host to run unsecured on port 80, but if I set it up to run secured on port 443, it appears that when it forwards an https request to Tomcat, Tomcat is redirecting Apache to http://www.resourcepoint.org . If I also have the port 80 virtual host configured in Apache HTTPD, it simply resubmits the http request to Tomcat which happily processes it (but obviously this is not what was wanted since I am now running unsecured). If the Apache HTTPD port 80 virtual host hasn't been configured, Apache can't find a suitable virtual host and tries to serve up the document from htdocs and, of course, fails. =20 I can see in Apache HTTPD log files where it is successfully getting the https request and I can see a connection accepted on port 8009 in the tomcat log files (followed by a line containing Location =3D http://www.resourcepoint.org/index.jsp). Finally, in the case where the Apache HTTPD port 80 virtual host is not configured I can see entries in the Apache HTTPD error file where it says the file could not be found in htdocs (because that isn't where it is). =20 My question is:=20 =20 Why doesn't Tomcat process this https request? Why is it redirecting Apache to an http URL? Am I missing some configuration parameter that I'm unaware of? =20 I have included fragments of both my Apache and Tomcat configuration files below. =20 Thanks in advance for any assistance you can provide. =20 Bill Bailey Senior Developer / DBA Northland, A Church Distributed =20 Apache Virtual Host Configuration Fragment =20 NameVirtualHost xxx.xx.xx.x:443 =20 =20 # General setup for the virtual host =20 ServerName www.resourcepoint.org:443 DocumentRoot E:\Apache2\vhosts\resourcepoint ServerAlias www.resourcepoint.org:443 ErrorLog logs/resourcepoint-ssl-error_log CustomLog logs/resourcepoint-ssl-access_log common =20 =20 ... directory stuff in here ... =20 =20 =20 ProxyPass ajp://127.0.0.1:8009/ ProxyPassReverse ajp://127.0.0.1:8009/ =20 =20 ... SSL stuff here ... =20 Tomcat Virtual Host Configuration Fragment =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 ------_=_NextPart_001_01C74935.65AD7BA2--