[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nobie questions (1. about apache, 2. about linux)
- To: linux-il(at-nospam)linux.org.il
- Subject: Re: nobie questions (1. about apache, 2. about linux)
- From: "Alon Kadury" <kadury(at-nospam)hotmail.com>
- Date: Sun, 11 Nov 2001 15:18:41
- Cc: oded(at-nospam)geek.co.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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