国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Win服務器 > 正文

windows環境下如何用squid代理https(ssl)

2024-09-10 00:01:44
字體:
來源:轉載
供稿:網友
  這個其實跟配置http代理也差不多,我之前是因為沒有使用支持ssl的squid版本,所以反復折騰都不見效!
  首先得檢查你正在使用的squid版本是否是支持ssl的,主要看squid/sbin/ssleay32.dll文件是否存在,如果沒有此文件那就得去換個支持ssl的squid版本了。
  我這里就只提供個最簡單的例子:
  復制代碼 代碼如下:
  acl all src 0.0.0.0/0.0.0.0
  acl manager proto cache_object
  acl localhost src 127.0.0.1/255.255.255.255
  acl to_localhost dst 127.0.0.0/8
  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 all
  icp_access allow all
  https_port 443 accel cert=c:/certs/server.pem key=c:/certs/server.pem vhost
  cache_peer 192.168.1.13 parent 443 0 no-query originserver login=PASS ssl sslflags=DONT_VERIFY_PEER name=kensite
  cache_peer_domain kensite ken.01h.net
  hierarchy_stoplist cgi-bin ?
  access_log c:/squid/var/logs/access.log squid
  acl QUERY urlpath_regex cgi-bin /?
  cache deny QUERY
  refresh_pattern ^ftp:  1440 20% 10080
  refresh_pattern ^gopher: 1440 0% 1440
  refresh_pattern .  0 20% 4320
  acl apache rep_header Server ^Apache
  broken_vary_encoding allow apache
  visible_hostname 01H.NET
  coredump_dir c:/squid/var/cache
  備注:“c:/certs/server.pem”這個文件是可以去提供ssl服務的軟件相關目錄下找到的,擴展名也有可能是.crt、.key等,我這里的.pem是以VisualSVN為例的。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 于田县| 天峨县| 柳州市| 定边县| 潞城市| 德江县| 界首市| 类乌齐县| 安宁市| 竹山县| 休宁县| 上饶县| 东安县| 林口县| 巴林左旗| 永嘉县| 岚皋县| 忻州市| 余姚市| 奇台县| 普宁市| 和平区| 迁安市| 汝阳县| 香格里拉县| 平顺县| 扬州市| 米易县| 北碚区| 桂林市| 偏关县| 华阴市| 婺源县| 班玛县| 新余市| 呼伦贝尔市| 泌阳县| 德州市| 孟津县| 万州区| 蒙山县|