dear linuxers,
bagaimana cara mengoptimalkan squid 2.4STABLE6 di RHLAS 2.1?
fyi, spesifikasi server saya adalah: PIII 797Mhz, 256 MB, HD 18GB SCSI.
saya sudah berhasil install Advance Servernya. terus partisi yang
dibuat:
/boot 50MB
/usr sisa
/home 4GB
/ 380MB
/var 256MB
swap 512MB
rencananya server ini nanti akan melayani 200 client.
berikut, isi squid.conf yang saya coba pakai:
==================================
http_port 8080
icp_port 0
append_domain .domain.ku
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
request_header_max_size 10 KB
request_body_max_size 1024 KB
maximum_object_size 4096 KB
range_offset_limit -1 KB
request_timeout 30 seconds
pconn_timeout 30 seconds
cache_dir diskd /usr/share/squid/cache1 2048 8 256
cache_dir diskd /usr/share/squid/cache2 2048 8 256
cache_dir diskd /usr/share/squid/cache3 2048 8 256
cache_dir diskd /usr/share/squid/cache4 2048 8 256
cache_access_log /usr/local/squid/logs/access.log
cache_store_log none
cache_swap_low 90
cache_swap_high 98
redirect_rewrites_host_header off
acl localnet src 129.100.0.0/255.255.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 80 443 210 119 70 21 1080 1025-65535
acl CONNECT method CONNECT
acl PORN url_regex "/usr/local/etc/squid/porn"
acl NOPORN url_regex "/usr/local/etc/squid/noporn"
acl WORKING1 time MTWHF 08:00-12:00
acl WORKING2 time MTWHF 13:00-17:00
acl all src 0.0.0.0/0.0.0.0
http_access allow CONNECT
http_access allow localnet !PORN NOPORN WORKING1
http_access allow localnet !PORN NOPORN WORKING2
http_access allow localhost
http_access deny localnet
http_access deny !Safe_ports
http_access deny all
cache_mgr [EMAIL PROTECTED]
cache_effective_user squid
cache_effective_group squid
log_icp_queries off
buffered_logs on
logfile_rotate 5
memory_pools off
debug_options ALL,1
half_closed_clients off
shutdown_lifetime 45 seconds
==================================
ps: kenapa kalau menjalankan suatu aplikasi, si aplikasi
listen di IP 127.0.0.1? Padahal saya sudah assign
IP ke eth0?
terima kasih telah meluangkan waktunya.
best regards.
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3