par mossburg » 17 Mai 2005 15:27
La partition est en ext3, et nobody (qui est utilisateur de squid) est propriétaire de /cache.
voila mon squid.conf:
# FICHIER DE CONFIGURATION DU PROXY SQUID
shutdown_lifetime 5 seconds
icp_port 0
http_port 8080
cache_peer 192.168.44.254 parent 8080 0 no-query default
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_effective_user nobody
cache_effective_group nobody
pid_filename /var/run/squid.pid
cache_mem 4 MB
cache_dir aufs /cache 150 16 256
error_directory /usr/share/squid/errors/French
offline_mode on
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
useragent_log /var/log/squid/useragent.log
strip_query_terms off
log_mime_hdrs off
forwarded_for off
acl within_timeframe time MTWHFAS 00:00-24:00
# liste d'acces
acl localnet src 192.168.0.0/255.255.0.0
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 800 # Squids port (for icons)
acl CONNECT method CONNECT
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#Set custom configured ACLs
http_access allow hdn
http_access deny all
http_reply_access deny blocked_mimetypes
http_reply_access allow all
maximum_object_size 4096 KB
minimum_object_size 0 KB
request_body_max_size 0 KB
reply_body_max_size 0 allow all
visible_hostname proxy
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
"La seule certitude que j'ai c'est d'être dans le doute"