[squid-users] Does anyone know how to make https work?

From: Brian Lu <lyt0112@dont-contact.us>
Date: Mon, 21 Apr 2008 17:58:06 +0800

Hi All
I meet a problem:when I use https to access the web pages,my IE always show
me:
1.If setuped cache_peer:
¿ù»~
±ý³sµ²¤§ºô§}¡]URL¡^µLªk¥¿½Tªº¶Ç¦^

·í¹Á¸Õ¶Ç¦^¤U­±ªººô§}¡]URL¡^®É¡G
https://www.chb.com.tw/wcm/web/home/index.html
µo¥Í¤F¤U¦Cªº¿ù»~¡G
Unsupported Request Method and Protocol
©|¥¼¤ä´©ªº­n¨D¤è¦¡©Î³q°T¨ó©w
Squid does not support all request methods for all access protocols. For
example, you can not POST a Gopher request.
¦]¬° Squid ¡]ºô¸ô§Ö¨úµ{¦¡¡^¨Ã¥¼¤ä´©©Ò¦³ªº³sµ²­n¨D¤è¦¡¦b¦U¦¡³q°T¨ó©w¤W¡C¤ñ¦p»¡¡A§A¤£¯à­n¨D¤@­Ó GOPHER ªº POST ³sµ²­n¨D¡C

Generated Mon, 21 Apr 2008 05:22:30 GMT by proxy.seed.net.tw
(squid/2.5.STABLE11)

2.If no cache_peer:
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL:
https://www.chb.com.tw/wcm/web/home/index.html
The following error was encountered:
Connection to 210.65.204.245 Failed
The system returned:
    (71) Protocol error
The remote host or network may be down. Please try the request again.
Your cache administrator is .

Generated Mon, 21 Apr 2008 05:18:30 GMT by 192.168.1.254 (squid/3.0.STABLE2)

My squid version:
[root@192 ]# squid -v
Squid Cache: Version 3.0.STABLE2
configure options: '--enable-ssl' '--enable-linux-netfilter'
'--enable-referer-log'

My squid.conf:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
http_reply_access allow all
icp_access allow localnet
icp_access deny all
htcp_access allow localnet
htcp_access deny all
http_port 3128 transparent
https_port 3129 cert=/usr/local/squid/etc/cert.pem
key=/usr/local/squid/etc/key.pem transparent
hierarchy_stoplist cgi-bin ?
cache_mem 10 MB
cache_dir ufs /var/spool/squid 10 8 64
logformat squid Time:%tl Local:%>a:%>p Destination:%la:%lp RqstMethod:%rm
%Ss/%03Hs RqstTime:%5tr(milliseconds) RplySize:%<s
logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A
%mt [%>h] [%<h]
logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st
"%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
#access_log /usr/local/squid/var/logs/access.log squid
access_log syslog:local5.info squid
cache_log /usr/local/squid/var/logs/cache.log
cache_store_log none
emulate_httpd_log on
log_ip_on_direct on
pid_filename /var/run/squid.pid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
connect_timeout 15 seconds
cache_effective_user squid
cache_effective_group squid
icp_port 3130
#never_direct allow all
#coredump_dir /usr/local/squid/var/cache
cache_peer 61.219.36.120 parent 80 3130 no-query no-netdb-exchange no-digest
weight=1 round-robin connect-timeout=15
cache_peer 139.175.55.210 parent 8080 3130 no-query no-netdb-exchange
no-digest weight=6 round-robin connect-timeout=15
.................................................................................................................................................................................................................

Does anyone know how to make https work? thank you very much~

Best regards,
Brian Lu
Received on Tue Apr 22 2008 - 14:02:59 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT