Centos 6.4下用Squid配置反向 Proxy多個內網WEB伺服器

來源:互聯網
上載者:User
http_port 80 accel vportvisible_hostname bogoncache_mem 128 MBmaximum_object_size_in_memory 2048 KBmemory_replacement_policy lrucache_dir ufs  /usr/local/squid/var/cache/squid 512 16 256access_log /usr/local/squid/var/logs/access.logcache_log /usr/local/squid/var/logs/cache.logmax_open_disk_fds 0minimum_object_size 0 KBmaximum_object_size 32768 KB#logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h""%{User-Agent}>h" %Ss:%Shcache_peer 192.168.20.17 parent 80  0 no-query no-digest originserver name=oacache_peer 10.19.113.3 parent 80  0 no-query no-digest originserver name=ob#需要反向 Proxy的源WEB伺服器,可以添加多個 ,若只有一個源WEB伺服器,可不設name #需要反向 Proxy的源WEB伺服器,可以添加多個cache_peer_domain oa oa.XXX.com.cncache_peer_domain ob ob.XXX.com.cn#若只有一個源WEB伺服器,可不設cache_peer_domainhttp_access allow allcache_effective_user nobodycache_effective_group nobodycache_mgr zifu.199s0@163.com#refresh_pattern ^ftp: 60 20% 10080#refresh_pattern ^gopher: 60 0% 1440#refresh_pattern ^gopher: 60 0% 1440#refresh_pattern . 0 20% 1440refresh_pattern -i \.css$      360    50%    2880refresh_pattern -i \.js$        1440    50%    2880refresh_pattern -i \.html$      720    50%    1440refresh_pattern -i \.jpg$      1440    90%    2880refresh_pattern -i \.gif$      1440    90%    2880refresh_pattern -i \.swf$      1440    90%    2880refresh_pattern -i \.jpg$      1440    50%    2880refresh_pattern -i \.png$      1440    50%    2880refresh_pattern -i \.bmp$      1440    50%    2880refresh_pattern -i \.doc$      1440    50%    2880refresh_pattern -i \.ppt$      1440    50%    2880refresh_pattern -i \.xls$      1440    50%    2880refresh_pattern -i \.pdf$      1440    50%    2880refresh_pattern -i \.rar$      1440    50%    2880refresh_pattern -i \.zip$      1440    50%    2880refresh_pattern -i \.txt$      1440    50%    2880

 

Linux下配置反向 Proxy,實現一個公網IP代理多個內網的web伺服器。

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.