hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin ? php php3 htm html jsp js css asp aspx cache deny QUERY acl apache rep_header Server ^Apache broken_vary_encoding allow apache cache_swap_low 90 cache_swap_high 95 cache_replacement_policy lru memory_replacement_policy lru cache_dir null /tmp emulate_httpd_log on log_ip_on_direct on mime_table /etc/squid/mime.conf log_mime_hdrs off log_fqdn off check_hostnames off allow_underscore off hosts_file /etc/hosts request_header_max_size 6 KB quick_abort_min 16 KB quick_abort_max 16 KB quick_abort_pct 95 negative_ttl 60 seconds collapsed_forwarding on forward_timeout 2 minutes connect_timeout 60 seconds read_timeout 1 minutes request_timeout 1 minutes persistent_request_timeout 1 minute client_lifetime 1 day half_closed_clients off pconn_timeout 60 seconds shutdown_lifetime 60 seconds acl BLOCK_URI urlpath_regex -i ../ ... .. .ida .IDA .cnf .dll passwd boot .exe cmd default.ida XXXXXX /bin/sh wget 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 8080 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 1025-65535 # unregistered ports acl CONNECT method CONNECT acl_uses_indirect_client on log_uses_indirect_client off http_access allow all http_access allow manager localhost http_access deny BLOCK_URI http_access deny !Safe_ports http_access deny CONNECT !SSL_portsf reply_header_max_size 20 KB cache_mgr squid cachemgr_passwd sysdocu@ all // squid 계정 패스워드 입력 mail_from squid@sysdocu.com httpd_suppress_version_string on # --------- Important -------------- # cache_effective_user squid cache_effective_group squid visible_hostname sysdocu.com // squid 적용할 도메인을 입력해줍니다. 추가 가능 visible_hostname www.sysdocu.com visible_hostname img.sysdocu.com maximum_object_size 15 MB minimum_object_size 10 KB maximum_object_size_in_memory 1024 KB access_log /home/squid/logs/access.log squid cache_log /home/squid/logs/cache.log cache_store_log /home/squid/logs/store.log logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh pid_filename /var/run/squid.pid cache_mem 2 GB cache_peer 192.168.10.2 parent 80 0 // 서버 IP와 웹서버 포트를 입력해줍니다. http_port 8080 accel defaultsite=sysdocu.com:80 vhost // squid 적용할 도메인을 입력해줍니다. 추가가능 http_port 8080 accel defaultsite=www.sysdocu.com:80 vhost http_port 8080 accel defaultsite=img.sysdocu.com:80 vhost refresh_pattern -i .jpg$ 0 100% 86400 reload-into-ims refresh_pattern -i .gif$ 0 70% 86400 reload-into-ims refresh_pattern -i .png$ 0 70% 86400 reload-into-ims refresh_pattern -i .swf$ 0 70% 86400 reload-into-ims # --------- Important -------------- # logfile_rotate 1 memory_pools on memory_pools_limit 0 client_db off always_direct allow all error_directory /usr/local/squid/share/errors/Korean uri_whitespace deny coredump_dir /home/squid/cache high_response_time_warning 1500 store_dir_select_algorithm least-load |