Article delegate-en/2198 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2186@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: How can I not log some objects of specific extension?
04 Apr 2003 07:11:24 GMT feedback@delegate.org (Yutaka Sato)


On 03/28/03(23:12) you <pqyeabdyi-qjyh54ivzoxr.ml@ml.delegate.org> wrote
in <_A2186@delegate-en.ML_>
 |> On 03/25/03(23:18) you <pqyeabdyi-qjyh54ivzoxr.ml@ml.delegate.org> wrote
 |> in <_A2182@delegate-en.ML_>
 |>  |Do this should work even if in reverse HTTP PROXY mode? It 
 |> doesn't seem to work...
 |>  |
 |>  |If it's working, do this functionnality will be included in 
 |> futur release of delegate?
 |> 
 |> I think the patch will work in any case.  Could you show me your
 |> configuration where the access log is not disabled?
 |
 |Here's the configuration of the site that doesn't seem to disable logging of image:
 |
 |SERVER=http
 |CMAP="image/*:NOLOGCTYPE:*:*:*"
 |MOUNT="/-/builtin/* /builtin/*"
 |MOUNT="/* http://in.web.site:2109/* vhost=-name.web.site"
 |MOUNT="/* http://in.web.site:2109/* vhost=-public.web.site"
 |URICONV="mount"
...
 |I've activate the LOGFILE to see if that changed something, but it was not the case.

Are you sure that you have applied the patch?
I made another patch as enclosed which will make debugging output about
the evaluation of NOLOGCTYPE as follows.  In this case, I added "-dh"
option to see the matching about hostname condition.

04/04 16:06:10.15 [17474] 1+1: #### find NOLOGCTYPE for host[localhost]
04/04 16:06:10.15 [17474] 1+1: [1/1] REGEXP NAME MATCHING: localhost += * ?
04/04 16:06:10.15 [17474] 1+1: [1/1] ==> 1 (CMAP/DST localhost)
04/04 16:06:10.15 [17474] 1+1: [1/1] REGEXP NAME MATCHING: localhost += * ?
04/04 16:06:10.15 [17474] 1+1: [1/1] ==> 1 (CMAP/SRC localhost)
04/04 16:06:10.15 [17474] 1+1: #### check NOLOGCTYPE for type[image/*]
04/04 16:06:10.15 [17474] 1+1: #### is in NOLOGCTYPE

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** ../dist/delegate8.5.2/src/httplog.c	Wed Jan  8 22:15:33 2003
--- httplog.c	Fri Apr  4 16:06:03 2003
***************
*** 64,69 ****
--- 64,81 ----
  	char request[4*1024],*dp,com[1024],arg[4*1024];
  	char buff[8*1024],*fmt,*fp,fc,fmtb[256],tmp[256];
  	char cstat;
+ 	char types[1024];
+ 
+ sv1log("#### find NOLOGCTYPE for host[%s]\n",DST_HOST);
+ 	if( 0 <= find_CMAP(Conn,"NOLOGCTYPE",types) ){
+ sv1log("#### check NOLOGCTYPE for type[%s]\n",types);
+ 		if( strmatch_list(ctype,types,"",NULL,NULL) )
+ {
+ sv1log("#### is in NOLOGCTYPE\n");
+ 			return;
+ }
+ 	}
+ sv1log("#### not in NOLOGCTYPE\n");
  
  	if( (log = HTTPLOG) == NULL )
  		return;

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V