Re: URL that won't work

From: Bill Wichers <billw@dont-contact.us>
Date: Mon, 13 Apr 1998 00:39:09 -0400 (EDT)

On Sun, 12 Apr 1998 nicole@webweaver.net wrote:

>
> Greetings all
> I have come across a URL that will not work with squid. http://www.cdnow.com
> When you get there, try to go anywhere and you wind up back at the home page. I am running squid purely as a proxy via netscape on a test machine. My settings are below. Any help would be appreciatted!
> Also if you notice anything else odd in my settings, please let me know.

That page works for my system (Netscape 4.05 + Squid 1.1.21+retry).

> Generated Fri, 21 Mar 1997 21:51:48 GMT, by cachemgr.cgi/1.2.beta17@squid.mediacity.com
> http_port 8080
> icp_port 3130
> tcp_incoming_address 0.0.0.0
> tcp_outgoing_address 255.255.255.255
> udp_incoming_address 0.0.0.0
> udp_outgoing_address 255.255.255.255
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The above four addresses are set to illegal addresses. I only define the
tcp addresses and the udp_outgoing addresses, and I set those three to the
machine's IP address.

> neighbor_timeout 2 seconds
> dead_peer_timeout 10 seconds
> hierarchy_stoplist cgi-bin
> hierarchy_stoplist ?
> cache_stoplist cgi-bin
> cache_stoplist ?
> cache_stoplist_pattern
> cache_mem 67108864 bytes
            ^^^^^^^^^^^^^^
I'm not sure if squid 1.1.x supports tags like "bytes/kB/MB"... I set my
system to `cache_mem 96`.

> cache_swap_low 90
> cache_swap_high 95
> cache_mem_low 75
> cache_mem_high 90
> maximum_object_size 8290304 bytes

As above, I'm not sure squid 1.1.x supports "bytes" tags. My system is set
to maximum_object_size 32768 (it's in kB).

> ipcache_size 2048
> ipcache_low 90
> ipcache_high 95
> cache_dir /usr/local/squid/cache 100 16 256
> cache_access_log /usr/local/squid/logs/access.log
> cache_log /usr/local/squid/logs/cache.log
> cache_store_log /usr/local/squid/logs/store.log
> emulate_httpd_log off
> mime_table /usr/local/etc/squid/mime.conf
> log_mime_hdrs off
> pid_filename /usr/local/squid/logs/squid.pid
> debug_options ALL,1
> ident_lookup off
> log_fqdn off
> client_netmask 255.255.255.255
> ftp_user Squid@mydomain.com
           ^^^^^^^^^^^^^^^^^^

Create an account with a working email address and put that email address
here. This will prevent problems with "picky" FTP servers that insist on
valid email addresses.

> ftp_list_width 32
> cache_dns_program /usr/local/libexec/dnsserver
> dns_children 15
               ^^
Probably more than you need, unless your squid is very heavily loaded or
has a very slow DNS lookup time.

> dns_defnames off
> unlinkd_program /usr/local/libexec/unlinkd
> pinger_program /usr/local/libexec/pinger
> redirect_children 20
> wais_relay_host localhost
> wais_relay_port 8000
> request_size 102400 bytes
               ^^^^^^^^^^^^

Again, I don't think "bytes" tags are supported in squid 1.1.x. I set this
parameter to `request_size 98304 KB`.

> reference_age 31557790 seconds
                ^^^^^^^^^^^^^^^^
Just a guess, but isn't this maybe a bit big? That's one year's worth of
seconds.

> quick_abort_min -1 KB
> quick_abort_pct 0
> quick_abort_max 0 KB
> negative_ttl 300 seconds
> positive_dns_ttl 21600 seconds
> negative_dns_ttl 300 seconds
> connect_timeout 60 seconds
> siteselect_timeout 4 seconds
> read_timeout 600 seconds
> request_timeout 30 seconds
> client_lifetime 86400 seconds
> pconn_timeout 120 seconds
> shutdown_lifetime 30 seconds
> acl all src 0.0.0.0/0.0.0.0
> http_access Allow all
> cache_mgr nicole
> cache_effective_user nobody
> cache_effective_group nogroup
> visible_hostname squid.mydomain.com
                    ^^^^^^^^^^^^^^^^^^
This should really be a valid domain name.

> announce_period 86400 seconds
> announce_host sd.cache.nlanr.net
> announce_file /dev/null
> announce_port 3131
> httpd_accel_port 80
> httpd_accel_with_proxy off
> httpd_accel_uses_host_header off
> dns_testnames netscape.com
> dns_testnames internic.net
> dns_testnames nlanr.net
> dns_testnames microsoft.com
> logfile_rotate 10
> append_domain .mydomain.com
                ^^^^^^^^^^^^^
This should be your domain name, if you want to use this feature. I find
it's best to force myu users to learn to do things the "right way" instead
of just blindly typing in www and such to go somewhere.

> tcp_recv_bufsize 0 bytes
> err_html_text
> memory_pools on
> memory_pools_limit 0 bytes
> forwarded_for on
> log_icp_queries on
> icp_hit_stale on
> minimum_direct_hops 4
> cachemgr_passwd XXXXXXXXXX all
> store_avg_object_size 13 KB
> store_objects_per_bucket 50
> http_anonymizer off
> client_db on
> netdb_low 900
> netdb_high 1000
> netdb_ping_period 300 seconds
> query_icmp off
> buffered_logs off
> icon_directory /usr/local/etc/squid/icons
> error_directory /usr/local/etc/squid/errors
> minimum_retry_timeout 5 seconds
> maximum_single_addr_tries 3
> as_whois_server whois.ra.net

The rest of the config looks OK, although that doesn't mean I didn't miss
something :-) I suspect your problem is the wierd addresses you defined in
tcp_incoming/outgoing_address and udp_incoming/outgoing_address.

        -Bill
Received on Sun Apr 12 1998 - 21:44:41 MDT

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