[squid-users] Squid problems with PHP

From: Przemyslaw Borkowski <xperience@dont-contact.us>
Date: 08 May 2003 15:20:03 +0200

Hello.

I have newbie question about squid cache.
I've set up proxy, with attached to this message config, everything runs fine, but when i try to POST something to a large database with interface based on PHP I've got a long timeout ended with message like ERR_ZERO_SIZE_OBJECT. Can this be error in configuration ? or something ?
Problem repeats with:
Proxy: Squid 2.5 and 3.0 devel.
Client: MS IE 5.00 and above
Server: Server: Apache/1.3.27 (Unix) PHP/3.0.18 PHP/4.1.1 mod_ssl/2.8.12 OpenSSL/0.9.6g

Please help :)

Przemyslaw Borkowski

----
Config:
http_port 8080
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_mem 32 MB
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 128 KB
fqdncache_size 2048
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /var/cache 100 16 256
cache_access_log /var/logs/access.log
cache_log /var/logs/cache.log
cache_store_log /var/logs/store.log
log_ip_on_direct on
mime_table /etc/mime.conf
pid_filename /var/logs/squid.pid
debug_options ALL,9
log_fqdn on
ftp_user ftp@localhost
ftp_list_width 40
ftp_sanitycheck off
check_hostnames on
hosts_file /etc/hosts
unlinkd_program /libexec/unlinkd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320
read_ahead_gap 24 KB
positive_dns_ttl 6 hours
connect_timeout 2 minutes
request_timeout 3 minutes
client_lifetime 8 hours
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 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 CONNECT method CONNECT
acl lokalka src 192.168.0.0/255.255.255.0
acl our_networks src 192.168.1.0/255.255.255.0
http_access allow our_networks
http_access allow manager localhost
http_access allow lokalka
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
icp_access deny all
cache_effective_user nobody
cache_effective_group nobody
email_err_data on
memory_pools on
via on
forwarded_for on
log_icp_queries on
buffered_logs on
icon_directory /share/icons
error_directory /share/errors/Polish
minimum_retry_timeout 5 seconds
maximum_single_addr_tries 5
coredump_dir none
chroot /usr/local/squid-3.0-devel
Received on Thu May 08 2003 - 07:20:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:23 MST