最終更新:2024-01-09 (火) 09:11:26 (101d)  

Squid
Top / Squid

Optimising Web Delivery

http://www.squid-cache.org/

概要

  • a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more

Squid/バージョン

インストール

yum install squid

ポート

  • 3128

設定

  • squid.conf
http_port 80 

#キャッシュ
cache_dir ufs /usr/local/squid/var/cache 100 16 256 
cache_effective_user squid 

visible_hostname www.example.com #エラーページなどに表示されるホスト名
httpd_accel_host 192.168.0.10 #WebサーバのIPアドレス
httpd_accel_port 80 #Webサーバのポート番号
httpd_accel_single_host on #リダイレクトが必要な場合はWebサーバへ転送
httpd_accel_with_proxy off #フォワードプロキシ動作
httpd_accel_uses_host_header off #透過モード

#アクセス制御
acl all src 0.0.0.0/0.0.0.0 
http_access allow all