[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nobie questions (1. about apache, 2. about linux)
- To: "Alon Kadury" <kadury(at-nospam)hotmail.com>
- Subject: Re: nobie questions (1. about apache, 2. about linux)
- From: "Oded Arbel" <oded(at-nospam)geek.co.il>
- Date: Sun, 11 Nov 2001 16:48:14 +0200
- Cc: "Linux-IL Mailing list" <linux-il(at-nospam)cs.huji.ac.il>
- References: <F119gRkQ9ZPWv1QJ2NX000042b5@hotmail.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
----- 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