Re: [squid-users] Differentiating http and ssl requests.

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 13 Nov 2007 23:06:27 +0100

On tis, 2007-11-06 at 10:28 -0800, Srinivas B wrote:
> Hi All,
>
> I am using Squid 2.6 Stable 12. I have my configuration like below.
>
> http_port 8080 accel defaultsite=myhttpsite.net
> https_port 8081 accel defaultsite=myhttpsite.net cert=<path_to_cert>
> key=<path_to_key> protocol=http

why protocol=http?

> HTTP Server sees no difference between actual requests, i.e., whether
> client request is http or https.
>
> Is there anyway to find out this at backend(Http web server) through
> HTTP Headers or any other configuration?

See cache_peer. But you'll need to remove the protocol=http above as it
drops Squid's knowledge that the request was received on an https_port..

Regards
Henrik

Received on Tue Nov 13 2007 - 15:06:42 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST