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

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

am 27.10.2010 15:01:01 von Axel Hoehr

--_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


...

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
...


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



>






Hi,

 

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.

 

Non mod_perl error output is written to the virtual host errror log fi=
le, specified as

 

<VirtualHost *:80>

         ...

 

        ErrorLog /path_to_my_logs/h=
ttp.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 virt=
ual host logfile?

 

Any input is highly appreciated

Thanks

 

Axel

 





--_000_430240553C327D4DB442D7341267E0D301D311BDBEPSDEOFFEXC0 00_--

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

am 27.10.2010 16:00:33 von torsten.foertsch

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-=20
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net