[squid-users] Squid and Tomcat, SSL connection

From: Elaine Ting <yuanyee@dont-contact.us>
Date: Fri, 31 Mar 2006 16:26:23 -0800

Hi,
I've been reading posts on this email list for some time, but still couldn't
find the answer. I apologize if this question has been asked before.

I would like to have a connection like this:
User -> WebProxy -> Internal Server

The connection between the user and the web proxy (squid) is https.
The connection between the webproxy and the internal server (tomcat) is
http.

In my squid.conf, I have these entries:
http_port 80
https_port 443 cert=/etc/squid/certificate/cacert.pem
key=/etc/squid/certificate/cakey.pem
httpd_accel_port 8082
httpd_accel_host <TOMCAT_HOST_NAME>
httpd_accel_single_host on
httpd_accel_with_proxy on

In my tomcat's server.xml, these are the only connector ports I have (others
are commented out):
    <Connector port="8009"
               enableLookups="false" redirectPort="8443" debug="0"
               protocol="AJP/1.3" URIEncoding="UTF-8"/>

    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->

    <Connector port="8082"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false"
               acceptCount="100" debug="0" connectionTimeout="20000"
               proxyPort="80" disableUploadTimeout="true" />

Now, when I type https://.... in my browser, it loads the first page in my
web application with no problem. However, when I try to click on a button on
the (JSP) page to submit something, it immediately changes to a
http://.......... url, and FireFox/IE would say it's not able to connect to
the server. If I manually modified the http://... url to a https://.... url,
things appear to work again.

My question is, what have I done wrong? How can I stop it from changing to a
http:// url?

Thanks,
Elaine
Received on Fri Mar 31 2006 - 17:26:25 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:05 MST