[squid-users] Fwd: reverse proxy HTTPS

sothy shan sothy.e98 at gmail.com
Mon Mar 6 10:21:21 UTC 2017


Hi,

I can give precise what I am doing on this part.See the previous mail below
for my exact requirement.

//create the keys.

$openssl req -new -keyout key.pem -nodes -x509 -days 365 -out cert.pem

Both keys(cert.pem and key.pem) are places in /etc/squid/.

Then, I make following in squid.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
https_port 192.168.1.69:443 cert=/etc/squid/cert.pem key=/etc/squid/key.pem
cache_peer X.Y.Z.Z parent 443 0 no-query originserver


http_access allow all
++++++++++++++++++++++++++++++++++++++++++++++

When I type in browser like this https://192.168.1.69

I got an error in browser

The requested URL could not be retrieved
When see terminal, I show this error:

HTTP/1.1 400 Bad Request
Server: squid/4.0.18
Mime-Version: 1.0
Date: Mon, 06 Mar 2017 10:19:42 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 3522
X-Squid-Error: ERR_INVALID_URL 0
Vary: Accept-Language
Content-Language: en
X-Cache: MISS from Host-004
Via: 1.1 Host-004 (squid/4.0.18)
Connection: close
///////////////////////////////////////////////////////////////////

May I ask why I'm getting this error?

Thanks for your help.

Best regards
Sothy


---------- Forwarded message ----------
From: sothy shan <sothy.e98 at gmail.com>
Date: Mon, Mar 6, 2017 at 10:44 AM
Subject: reverse proxy HTTPS
To: squid-users at lists.squid-cache.org


Hello friends,

I am using squid 4.0.18. It works for reverse proxy HTTP.

Now I need to make HTTPS. I am not sure configure squid server and ssl keys.

If you have any pointer or procedures in Ubuntu 16.04, please let me know.

Thanks for your reponse.


Best regards
Sothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170306/5e8e72af/attachment.html>


More information about the squid-users mailing list