windows环境下用squid代理https(ssl)的方法
2013-12-17 15:19
821 查看
这个其实跟配置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为例的。
您可能感兴趣的文章:
相关文章推荐
- 使用windows stunnel 客户端连接 squid https 代理
- Windows环境下配置Apache 2.2.x + SSL ,实现https方式
- Windows环境下phpstudy配置Apache https安全套接字层SSL
- python之squid实现免费 IP代理 (windows win7 单机 本机 本地 正向代理 区分 HTTPS)
- windows上面安装squid加速代理网站配置方法
- Nginx环境下http和https(ssl)共存的方法
- Windows平台下Apache SSL/TLS(https)的配置方法
- nginx 环境下http和https(ssl)共存的方法
- Nginx环境下http和https(ssl)共存的方法
- nginx https反向代理tomcat的2种实现方法
- windows下PHP开发环境配置方法1
- windows下环境变量设置方法
- 详解 Nginx + Tomcat HTTPS/SSL 配置方法
- python27在windows环境安装talib的方法
- squid代理的配置文档与处理方法
- windows下PHP环境(apache,PHP,Mysql)详细配置方法
- 关于windows环境下QT开发ICE程序无法正确连接类库的解决方法
- windows下安装composer方法(不修改PATH环境变量)
- linux/unix/windows环境查看本机的外网内网地址方法
- 在Windows环境下学习Linux命令行的几种方法