Hi all,

i configured squid transparent for caching live video stream.

I need to cache the live video objects from my particular domain.

But mostly url's vary from request to request.Because VOD service.

So i configured the rewrite program.

video object size is 5 Mb to 100Mb...

I need to tune the squid configuration for their video needs.

This is my current squid conf.

http_port 80 transparent
icp_port 0
htcp_port 0
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 1024 MB
minimum_object_size 0 KB
maximum_object_size 1024 MB
maximum_object_size_in_memory 512 MB
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir aufs /var/cache/squid 40960 16 256
logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
request_header_max_size 256 KB
collapsed_forwarding on
quick_abort_min -1 KB
range_offset_limit -1 MB
url_rewrite_program /usr/local/bin/ralph-rewrite.pl
url_rewrite_children 200
refresh_pattern .               0       20%     4320    ignore-reload
negative_ttl 2 seconds
connect_timeout 15 seconds
client_persistent_connections on
persistent_request_timeout 15 seconds
pconn_timeout 15 seconds
read_timeout 15 seconds
request_timeout 15 seconds
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 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 901
acl purge method PURGE
acl CONNECT method CONNECT
acl mirror url_regex /mirror/
url_rewrite_access allow all
snmp_access allow snmppublic localhost
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow mirror
http_access deny all
http_reply_access allow all
always_direct allow all
icp_access allow all
visible_hostname localhost
forwarded_for off
header_access X-Cache-Lookup deny all
header_access Age deny all
snmp_port 3401
coredump_dir /var/cache/squid
client_lifetime 4 hours
store_avg_object_size 2 MB


Thanks
Vivek N.
________________________________________________________________________
You are invited to Get a Free AOL Email ID. - http://webmail.aol.in

Reply via email to