[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: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Date: Sun, 11 Nov 2001 15:00:35 +0200 (IST)
- cc: <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <F2083sllNY30kkZIhTr000042d3@hotmail.com>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Sun, 11 Nov 2001, Alon Kadury wrote:
> hi,
> i'm new to linux and have some questions:
See also http://www.iglu.org.il/mailing-lists/linux-il.html and
http://www.iglu.org.il/mailing-lists/gnubies-il.html
> 1. i'm trying to add to the apache log enviroment variables, like
> REMOTE_ADDR etc' but without luck.
> i canthe {h}i to reach the variables the brower sends like user-agent
> etc'.
> how can i add env' var' to the log?
Read in apache's manual about custom log format.
However, from what I see in my http.conf (I believe that this is the
defaulkt of Mandrake, and maybe the default of apache):
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.
#CustomLog logs/access_log common
# If you would like to have an agent and referer logfile uncomment the
# following directives.
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent
# If you prefer a single logfile with access, agent and referer
information
# (Combined Logfile Format) you can use the following directive.
CustomLog logs/access_log combined
So I believe that this "combined" format will give you what you need.
> 2. where can i buy a cd with the latest linux version.
> i dont need the sources, just a cd to install it (i'm using ver.5.2)
[you mean: redhat version 5.2. quite old, really]
See http://www.iglu.org.il/faq/cache/19.html
(this is the "Get Linux" link from the homepage of IGLU:
http://linux.org.il)
--
Tzafrir Cohen /"\
mailto:tzafrir@technion.ac.il \ / ASCII Ribbon Campaign
Taub 229, 04-829-3942 X Against HTML Mail
http://www.technion.ac.il/~tzafrir / \
=================================================================
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