Thanks. But how can I tell squidclient is retrieved the content from
the cache if I execute the same url the second time?
Thank you.
On 7/12/07, John Yatsko, Jr. <jyatsko@erielibrary.org> wrote:
> Did you set up the acl in your squid.conf? Squid is configured to block all
> connections by default.
>
> Look for these lines in your squid.conf:
> -------------------
> # Example rule allowing access from your local networks. Adapt
> # to list your (internal) IP networks from where browsing should
> # be allowed
> #acl our_networks src 192.168.1.0/24 192.168.2.0/24
> #http_access allow our_networks
>
> # And finally deny all other access to this proxy
> http_access deny all
> -----------------------
>
> EDIT THESE:
>
> #acl our_networks src 192.168.1.0/24 192.168.2.0/24
> #http_access allow our_networks
>
> Thank you,
>
> John Yatsko, Jr.
> Technology Assistant
> Erie County Public Library
> 160 East Front St
> Erie PA 16507
> (814) 451-7307
> ----- Original Message -----
> From: "ying lcs" <yinglcs@gmail.com>
> To: <squid-users@squid-cache.org>
> Sent: Thursday, July 12, 2007 12:00 PM
> Subject: [squid-users] How to test squid using squid client
>
>
> > Hi,
> >
> > I am reading "Test Squid" section here:
> > http://www.deckle.co.za/squid-users-guide/Starting_Squid
> >
> > I am able to get squid running, but when I do the step of "
> > ./squidclient http://www.squid-cache.org/" to test the squid, I get
> > the following permission denied error.
> >
> > Can you please me how I can test a running squid the first time?
> >
> >
> > $ ./squidclient http://www.squid-cache.org/
> > HTTP/1.0 403 Forbidden
> > Server: squid/2.6.STABLE13
> > Date: Thu, 12 Jul 2007 15:54:53 GMT
> > Content-Type: text/html
> > Content-Length: 1073
> > Expires: Thu, 12 Jul 2007 15:54:53 GMT
> > X-Squid-Error: ERR_ACCESS_DENIED 0
> > X-Cache: MISS from nobody@test.com
> > Via: 1.0 nobody@test.com:3128 (squid/2.6.STABLE13)
> > Proxy-Connection: close
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > "http://www.w3.org/TR/html4/loose.dtd">
> > <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
> > charset=iso-8859-1">
> > <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
> > <STYLE
> > type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
> > </HEAD><BODY>
> > <H1>ERROR</H1>
> > <H2>The requested URL could not be retrieved</H2>
> > <HR noshade size="1px">
> > <P>
> > While trying to retrieve the URL:
> > http://www.squid-cache.org/
> > <P>
> > The following error was encountered:
> > <UL>
> > <LI>
> > <STRONG>
> > Access Denied.
> > </STRONG>
> > <P>
> > Access control configuration prevents your request from
> > being allowed at this time. Please contact your service provider if
> > you feel this is incorrect.
> > </UL>
> > <P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.
> >
> >
> > <BR clear="all">
> > <HR noshade size="1px">
> > <ADDRESS>
> > Generated Thu, 12 Jul 2007 15:54:53 GMT by nobody@test.com
> > (squid/2.6.STABLE13)
> > </ADDRESS>
> > </BODY></HTML>
>
>
Received on Thu Jul 12 2007 - 14:48:59 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT