WEB reverse proxy server with a plurality of network configuration Centos 6.4 Squid

http_port 80 accel vport
visible_hostname bogon
cache_mem 128 MB

maximum_object_size_in_memory 2048 KB

memory_replacement_policy lru

cache_dir ufs  /usr/local/squid/var/cache/squid 512 16 256

access_log /usr/local/squid/var/logs/access.log

cache_log /usr/local/squid/var/logs/cache.log

max_open_disk_fds 0

minimum_object_size 0 KB

maximum_object_size 32768 KB

#logformat combined %> A% UI% UN [% TL] " % RM% Ru the HTTP /% RV " % Hs% <ST " % {the Referer}> H " " % {the User-- Agent}> H " % Ss:% Sh 

the cache_peer 192.168 . 20.17 parent 80   0 NO-NO-Query Digest originserver name = OA 
the cache_peer 10.19 . 113.3 parent 80   0 NO-NO-Query Digest originserver name = OB 

source WEB server # require reverse proxy may be added a plurality of, if only a source WEB server, name not provided 

 

the source WEB server # require reverse proxy may be added a plurality 

cache_peer_domain OA oa.XXX . Com.cn 
cache_peer_domain OB ob.XXX . Com.cn

# If only one source WEB server, not to set cache_peer_domain 


the http_access All the allow 

the cache_effective_user the nobody 

cache_effective_group the nobody 

cache_mgr zifu.199s0 @ 163 .com 

#refresh_pattern ^ FTP: 60  20 is % 10080 

#refresh_pattern ^ Gopher: 60  0 % 1440 

#refresh_pattern ^ Gopher: 60  0 % 1440 

#refresh_pattern. 0  20 % 1440 

refresh_pattern -i \ .css $       360     50 %     2880 

refresh_pattern -i \ .js $        1440    50%    2880

refresh_pattern -i \.html$      720    50%    1440

refresh_pattern -i \.jpg$      1440    90%    2880

refresh_pattern -i \.gif$      1440    90%    2880

refresh_pattern -i \.swf$      1440    90%    2880

refresh_pattern -i \.jpg$      1440    50%    2880

refresh_pattern -i \.png$      1440    50%    2880

refresh_pattern -i \.bmp$      1440    50%    2880

refresh_pattern -i \.doc$      1440    50%    2880

refresh_pattern -i \.ppt$      1440    50%    2880

refresh_pattern -i \.xls$      1440    50%    2880

refresh_pattern -i \.pdf$      1440    50%    2880

refresh_pattern -i \.rar$      1440    50%    2880

refresh_pattern -i \.zip$      1440    50%    2880

refresh_pattern -i \.txt$      1440    50%    2880

 

Linux Configuration reverse proxy, web server implemented within a plurality of public IP network proxy.

 

 

Reproduced in: https: //www.cnblogs.com/daretodream/archive/2013/04/27/3046975.html

Guess you like

Origin blog.csdn.net/weixin_34008805/article/details/93324192