[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nobie questions (1. about apache, 2. about linux)
- To: "Linux-IL Mailing list" <linux-il(at-nospam)cs.huji.ac.il>
- Subject: Re: nobie questions (1. about apache, 2. about linux)
- From: "Oded Arbel" <oded(at-nospam)geek.co.il>
- Date: Sun, 11 Nov 2001 17:58:30 +0200
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
If you would have bothered to read the documentation I pointed you to, you
would have easily found out that the query string will be logged if you use
%q in LogFormat and the remote user will be logged using %u (who would have
guessed ! ;-)
its a common mistake to apply semantics from one apache module to another,
completly unrelated, module. its always important to remember that the
apache modules were written by many different authors (usually, each module
by more then one author), and the semantics and nuances may differ terribly
from one module to another. it's a pitty that the apache software foundation
has yet to find time to declare some sort of "coding conventions" for use by
module authors, but its only reasonable - since they are also very lacking
on API documentation and other development help - when I was programming
apache modules I had to actually go and read source just to get a reasonable
understanding what was expected of me !
The configuration documentation, OTOH, is quite good - so read it, and read
the one for the appropriate module.
Oded
--
The biggest lies:
25. I *love* your new <hat/haircut/dress/suit...>!
----- Original Message -----
From: "Alon Kadury" <kadury@hotmail.com>
To: <linux-il@linux.org.il>
Cc: <oded@geek.co.il>
Sent: Sunday, November 11, 2001 3:18 PM
Subject: Re: nobie questions (1. about apache, 2. about linux)
> thanks again,
> http://httpd.apache.org/docs/mod/mod_rewrite.html
> lists the variables like REMOTE_USER, QUERY_STRING etc' that i want to
reach
> and log.
> i've tried to do what they say in the doc' but it does not work (most
likely
> my lack of knowlange in apache way of working (however i can write nice
> programs in c++ or java :) ).
>
> anyway any ideas as to how to change the httpd.conf file so that it will
log
> the REMOTE_USER, QUERY_STRING etc'?
>
> thanks
> alon
>
>
>
> >From: "Oded Arbel" <oded@geek.co.il>
> >To: "Alon Kadury" <kadury@hotmail.com>
> >CC: "Linux-IL Mailing list" <linux-il@cs.huji.ac.il>
> >Subject: Re: nobie questions (1. about apache, 2. about linux)
> >Date: Sun, 11 Nov 2001 16:48:14 +0200
> >
> >
> >----- Original Message -----
> >From: "Alon Kadury" <kadury@hotmail.com>
> >To: <linux-il@linux.org.il>
> >Sent: Sunday, November 11, 2001 1:51 PM
> >Subject: Re: nobie questions (1. about apache, 2. about linux)
> >
> >
> > > hi and thanks,
> > > i also have those lines in my httpd.conf
> > > however i'm trying to reach other variables (like remote_addr), but
> >can't
> > > (there is a diffrence between http-header and request variables).
> >I'm not sure what you mean when you say 'request variables'. there are
> >three
> >kinds of "request variables" that you can access from PHP - GET/POST
> >variabales, the logging of GET you can do by logging the request URI and
> >the
> >POST you can't log, the the HTTP header data which you can log by adding
> >%{header name}i entries to your log statements, and the so-called
> >"environment variables" which are called that because the web server sets
> >up
>this data in the environment when it runs CGIs. those "environment
>variables" are actually data about the request which is included in the
> >apache request struct, and can be fetched by the loging module
> >mod_log_config by the use of special formatting options for the LogFormat
> >command. for example, to get to the ip address of the remote client,
you'll
> >use the %a option. read all about it at
> >http://httpd.apache.org/docs/mod/mod_log_config.html under "Custom Log
> >Formats".
> >
> >Oded
> >
> >
> >--
> >Whenever man comes up with a better mousetrap, nature immediately comes
up
> >with a better mouse.
> > -- James Carswell
> >
> >
> >
> >=================================================================
> >To unsubscribe, send mail to linux-il-request@linux.org.il with
> >the word "unsubscribe" in the message body, e.g., run the command
> >echo unsubscribe | mail linux-il-request@linux.org.il
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
>
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il