mp2: apache virtual host configuration: error output written todefault error.log-file but virtual h

--_000_430240553C327D4DB442D7341267E0D301D311BDBEPSDEOFFEXC0 00_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm using mod_perl in virtual host context. The error output of my perl scr=
ipts and modules is routed to the default log file (debian5, standard /var/=
log/apache2/error.log.

Non mod_perl error output is written to the virtual host errror log file, s=
pecified as

<VirtualHost *:80>
...

ErrorLog /path_to_my_logs/http.error.log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent=
}i\"" combined
CustomLog /path_to_my_logs/http.access.log combined
...
</VirtualHost>

Now my question: how do I get mod_perl to log error output to the virtual h=
ost logfile?

Any input is highly appreciated
Thanks

Axel


--_000_430240553C327D4DB442D7341267E0D301D311BDBEPSDEOFFEXC0 00_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
#800000 2px solid; } --></style>
</head>
<body>
<font face=3D"Arial, sans-serif" size=3D"2">
<div>Hi,</div>
<div> </div>
<div>I'm using mod_perl in virtual host context. The error output of my per=
l scripts and modules is routed to the default log file (debian5, standard =
/var/log/apache2/error.log.</div>
<div> </div>
<div>Non mod_perl error output is written to the virtual host errror log fi=
le, specified as </div>
<div> </div>
<div><VirtualHost *:80></div>
<div>         ...</div>
<div> </div>
<div>        ErrorLog /path_to_my_logs/h=
ttp.error.log</div>
<div>        LogFormat "%h %l %u %t=
\"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i=
\"" combined</div>
<div>        CustomLog /path_to_my_logs/=
http.access.log combined</div>
<div>        ...</div>
<div></VirtualHost></div>
<div> </div>
<div>Now my question: how do I get mod_perl to log error output to the virt=
ual host logfile?</div>
<div> </div>
<div>Any input is highly appreciated</div>
<div>Thanks</div>
<div> </div>
<div>Axel</div>
<div> </div>
</font>
</body>
</html>

--_000_430240553C327D4DB442D7341267E0D301D311BDBEPSDEOFFEXC0 00_--
Axel Hoehr [ Mi, 27 Oktober 2010 15:01 ] [ ID #2049646 ]

Re: mp2: apache virtual host configuration: error output written to default error.log-file but virt

On Wednesday, October 27, 2010 15:01:01 Axel Hoehr wrote:
> Now my question: how do I get mod_perl to log error output to the virtual
> host logfile?

This question has been discussed several times before.

See for example:
http://www.gossamer-threads.com/lists/modperl/modperl/99248# 99248
http://www.gossamer-threads.com/lists/modperl/modperl/98885# 98885

Torsten Förtsch

=2D-
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
torsten.foertsch [ Mi, 27 Oktober 2010 16:00 ] [ ID #2049647 ]
Webserver » gmane.comp.apache.mod-perl » mp2: apache virtual host configuration: error output written todefault error.log-file but virtual h

Vorheriges Thema: HTTP Request Input Filter to dump post data
Nächstes Thema: Implementing a custom config directive (AP_INIT_TAKE1) in mod_perl 2