httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aram W. Mirzadeh" <...@qosina.com>
Subject Re: Apache patch: virtual host name in access_log (fwd)
Date Wed, 25 Oct 1995 17:45:01 GMT

Small world, I saw it too, sent him an email to upload it to hyperreal.

<Aram>

At 09:32 AM 10/25/95 -0700, you wrote:
>
>as seen on c.i.www.u.servers, and now in the bugs mail..
>
>no ack sent.
>
>Forwarded message:
>> From shields@yage.tembel.org  Tue Oct 24 18:15:58 1995
>> Message-Id: <m0t7uRa-000HVIC@yage.tembel.org>
>> Date: Wed, 25 Oct 95 01:15 GMT
>> From: shields@tembel.org (Michael Shields)
>> To: apache-bugs@apache.org
>> Newsgroups: comp.infosystems.www.servers.unix
>> Subject: Re: Apache patch: virtual host name in access_log
>> References: <1995Oct23.111924.128@xavier.xu.edu>
>> Organization: Tembel's Hedonic Commune
>> 
>> In article <1995Oct23.111924.128@xavier.xu.edu>,
>> Dan Luther <dan.luther@dfrontiers.com> wrote:
>> > After a few minutes examining the code for the experimental log module,
I came 
>> > up with a solution for putting the virtual host name in the access_log
file. 
>> > The modifications are very minimal (only 5 lines) and are marked with a +:
>> 
>> Here's a slightly cleaner and machine-readable patch.  It also doesn't
>> change the default log format -- you should do that in httpd.conf.
>> 
>> --- mod_log_config.c	1995/09/04 10:41:54	1.1.1.1
>> +++ mod_log_config.c	1995/10/25 01:03:49
>> @@ -74,6 +78,7 @@
>>   * %...s:  status.  For requests that got internally redirected, this
>>   *         is status of the *original* request --- %...>s for the last.
>>   * %...b:  bytes sent.
>> + * %...v:  virtual host (Dan Luther--Wiltel Internet Services)
>>   * %...{Foobar}i:  The contents of Foobar: header line(s) in the request
>>   *                 sent to the client.
>>   * %...{Foobar}o:  The contents of Foobar: header line(s) in the reply.
>> @@ -183,6 +188,9 @@
>>  char *log_bytes_sent (request_rec *r, char *a)
>>  { return pfmt (r->pool, r->bytes_sent); }
>>  
>> +char *log_vhost (request_rec *r, char *a)
>> +{ return r->server->server_hostname; }
>> +
>>  char *log_header_in (request_rec *r, char *a)
>>  { return table_get (r->headers_in, a); }
>>  
>> @@ -232,6 +240,7 @@
>>      { 'r', log_request_line, 1 },
>>      { 's', log_status, 1 },
>>      { 'b', log_bytes_sent, 0 },
>> +    { 'v', log_vhost, 0 },
>>      { 'i', log_header_in, 0 },
>>      { 'o', log_header_out, 0 },
>>      { 'e', log_env_var, 0 },
>> -- 
>> Shields.
>> 
>
>
--
Aram W. Mirzadeh, MIS Manager, Qosina Corporation
http://www.qosina.com/~awm/, awm@qosina.com
Apache httpd server team http://www.apache.org



Mime
View raw message