[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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).
a jsp and php script that i did can reach it, however i want to log them in 
the :
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}\"" 
combined line.
i've tried apache web site but didn't find help beside %{env:remote_addr}, 
but this does not seem to work.

any ideas???

thanks,
alon



>From: Tzafrir Cohen <tzafrir@technion.ac.il>
>To: Alon Kadury <kadury@hotmail.com>
>CC: <linux-il@linux.org.il>
>Subject: Re: nobie questions (1. about apache, 2. about linux)
>Date: Sun, 11 Nov 2001 15:00:35 +0200 (IST)
>
>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
>


_________________________________________________________________
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