Re: [squid-users] Acl problems With Purge

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 24 Oct 2001 04:23:17 +0200

AJ Lemke wrote:
>
> The command that I am issuing is:
>
> ./client -p 80 PURGE http://cache.securitylabs.com/index.cfm
>
> I am issuing the command through the local console on the box itself.

Hmm... thinking..

are you running Squid in "accelerator" mode?

If you are then it might be that the request is denied by
"httpd_accel_with_proxy off"... if so then the following small patch
should fix the problem.

Regards
Henrik Nordström
Squid Hacker

Index: src/client_side.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/client_side.c,v
retrieving revision 1.551
diff -u -w -r1.551 client_side.c
--- src/client_side.c 2001/10/23 11:05:16 1.551
+++ src/client_side.c 2001/10/24 02:20:02
@@ -131,6 +131,8 @@
         return 0;
     if (http->flags.accel)
         return 0;
+ if (http->request->method == METHOD_PURGE)
+ return 0;
     return 1;
 }
 
Received on Tue Oct 23 2001 - 20:54:00 MDT

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