Apache 1.2: ErrorLogging multiple virtual hosts to ONE file

Apache 1.2: ErrorLogging multiple virtual hosts to ONE file

Post by John Murtar » Thu, 20 Feb 1997 04:00:00



We are running 1.2b6 and mod_log_config -- we were able to configure
transfer file logging with no problems. We now want to log ALL
virtual host errors to the same file, BUT also tag them with
the domain name (so we can sort them out later).

Looked through the docs/code, sounds like it ought to be possible,
but couldn't find anything. Thanks for any help!
--
                                          John
___________________________________________________________________
John Murtari                              Software Workshop Inc.

http://www.thebook.com/

 
 
 

Apache 1.2: ErrorLogging multiple virtual hosts to ONE file

Post by Marc Slemk » Thu, 20 Feb 1997 04:00:00



Quote:>We are running 1.2b6 and mod_log_config -- we were able to configure
>transfer file logging with no problems. We now want to log ALL
>virtual host errors to the same file, BUT also tag them with
>the domain name (so we can sort them out later).
>Looked through the docs/code, sounds like it ought to be possible,
>but couldn't find anything. Thanks for any help!

From the mod_log_config documentation:
  %...v:          The name of the server (i.e. which virtual host?)

 
 
 

Apache 1.2: ErrorLogging multiple virtual hosts to ONE file

Post by Edward Longstr » Fri, 21 Feb 1997 04:00:00


This might help.

LogFormat "%v %h %l %u %t \"%r\" %s %b"

Where %v will be replaced by www.xyz.com.

Ed

: >We are running 1.2b6 and mod_log_config -- we were able to configure
: >transfer file logging with no problems. We now want to log ALL
: >virtual host errors to the same file, BUT also tag them with
: >the domain name (so we can sort them out later).

: >Looked through the docs/code, sounds like it ought to be possible,
: >but couldn't find anything. Thanks for any help!

: From the mod_log_config documentation:
:   %...v:          The name of the server (i.e. which virtual host?)

--
--------------------------------------------------------
|*  Edward Longstrom - Spectra.Net Communications Inc.* |

|       WWW:    http://www.spectra.net/                 |
|     Voice:    607-798-7300                            |
|       Fax:    607-798-8305                            |
|* Internet:    607-770-0090                          * |
--------------------------------------------------------

 
 
 

Apache 1.2: ErrorLogging multiple virtual hosts to ONE file

Post by John Murtar » Sat, 22 Feb 1997 04:00:00



> This might help.

> LogFormat "%v %h %l %u %t \"%r\" %s %b"

> Where %v will be replaced by www.xyz.com.

        Understand the %v will insert the domain name, the
confusion if over which log file the LogFormat directive applies
to -- I assume it is the transfer log, and we do have a unique
format defined there with no problem.
        Apache has a seperate ErrorLog directive, and the error
log does have a different format -- but I don't see how I can
control the format of entries written to the ErrorLog to allow
me to combine all to one file, differentiating with the "%v".

                                               John Murtari

 
 
 

Apache 1.2: ErrorLogging multiple virtual hosts to ONE file

Post by Marc Slemk » Sun, 23 Feb 1997 04:00:00



Quote:>    Apache has a seperate ErrorLog directive, and the error
>log does have a different format -- but I don't see how I can
>control the format of entries written to the ErrorLog to allow
>me to combine all to one file, differentiating with the "%v".

There is no real "format" for the error log.  It generally includes
whatever Apache whines about and error output from CGIs, which
could be anything.  There is currently no way to explicitly
have the domain name specified in each message in the error
log.
 
 
 

1. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

Hello.

Have been running 1.2b8 for a intranet and decided to move upto 1.3b2. I
have several name based virtual hosts that have been working under
1.2b8. After compiling and installing 1.3b2 my virtual hosts do not
work. In fact what happens is that even though DocumentRoot and default
server name is different, eg: www.serverA.net pointing to /www/default,
Apache 1.3b2 will always take me to the first defined virtual host as if
it's locked to it no matter what virtual host I try to browse. What
gives? Please post and E-Mail.

In /etc/hosts for my machines IP address I have

A.B.C.D         www.default.net www.virtA.net www.virtB.net

In ../conf/httpd.conf I have;

<VirtualHost www.virtA.net>

DocumentRoot /usr/local/www/virtA
ServerName www.virtA.net
ErrorLog logs/virtA.error.log
TransferLog logs/virtA.access.log
</VirtualHost>

<VirtualHost www.virtB.net>

DocumentRoot /usr/local/www/virtB
ServerName www.virtB.net
ErrorLog logs/virtB.error.log
TransferLog logs/virtB.access.log
</VirtualHost>

--

2. prime and nprime ?

3. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

4. make problem

5. Apache-Win95: Can it do multiple Virtual Hosts to one IP?

6. PostgreSql: selects while inserting

7. Aix to DOS

8. Apache logging virtual hosts in one log file

9. Apache 2.0.x virtual host ALWAYS beings up the FIRST host in the list..

10. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

11. ErrorLog workaround for mass virtual hosting.

12. Q: logging virtual host name in ErrorLog?