V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
oulung
V2EX  ›  站长

squid 反向代理怎么配置 ssl?

  •  
  •   oulung · 2017-06-03 23:21:23 +08:00 · 3095 次点击
    这是一个创建于 2711 天前的主题,其中的信息可能已经有所发展或是发生改变。
    cache_effective_user squid
    cache_effective_group squid
    tcp_recv_bufsize 65535 bytes
    icp_port 0
    visible_hostname CDN
    http_port 80 accel vhost vport
    cache_peer 180.97.33.107 parent 80 0 no-query originserver name=wwwbaiducom
    cache_peer_domain wwwbaiducom www.baidu.com

    #acl
    http_access allow all

    acl AdminBoxes src 127.0.0.1
    acl Purge method PURGE
    http_access allow AdminBoxes Purge
    http_access deny Purge

    ###cache,dir
    #cache_log /home/squid/cache.log
    #access_log /home/squid/access.log squid

    cache_access_log none
    cache_store_log none

    cache_dir ufs /home/squid/cache 2048 32 128
    maximum_object_size 1024 KB
    maximum_object_size_in_memory 1024 KB
    cache_mem 128 MB
    cache_mgr Email
    cache_swap_low 80
    cache_swap_high 90
    ipcache_size 512
    ipcache_low 90
    ipcache_high 95
    fqdncache_size 512

    ### timeout
    connect_timeout 1 minute
    peer_connect_timeout 30 seconds
    request_timeout 2 minutes
    persistent_request_timeout 30 seconds
    hierarchy_stoplist cgi-bin ?

    #refresh_pattern
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
    refresh_pattern -i \.jpg$ 43200 50% 86400
    refresh_pattern -i \.png$ 43200 50% 86400
    refresh_pattern -i \.css$ 43200 50% 86400
    refresh_pattern -i \.js$ 43200 50% 86400
    refresh_pattern -i \.xml$ 43200 50% 86400
    refresh_pattern -i \.htm$ 7200 50% 43200
    refresh_pattern -i \.html$ 7200 50% 43200
    refresh_pattern . 0 20% 4320

    #header
    #via off
    reply_header_access Via deny all
    reply_header_access Server deny all
    forwarded_for on
    half_closed_clients off
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   939 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:39 · PVG 05:39 · LAX 13:39 · JFK 16:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.