vhost multiple error logs
vhost multiple error logs
am 03.03.2010 02:02:01 von Greg Cole
How can I have multiple error logs based on virtual host names?
something like this?
NameVirtualHost *:80
VirtualDocumentRoot /Library/WebServer/Documents/%-3
ErrorLog logs/$HOSTNAME.error_log
I have 11 host names and really only wish to have one VirtualHost section.
Thanks,
Greg
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: vhost multiple error logs
am 03.03.2010 02:13:15 von Frank Gingras
On 02/03/2010 8:02 PM, Greg Cole wrote:
> How can I have multiple error logs based on virtual host names?
>
> something like this?
>
> NameVirtualHost *:80
>
>
> VirtualDocumentRoot /Library/WebServer/Documents/%-3
> ErrorLog logs/$HOSTNAME.error_log
>
>
> I have 11 host names and really only wish to have one VirtualHost section.
>
> Thanks,
> Greg
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Greg,
You can, use you use traditional name-based vhosts, yes. Besides, you
don't need VirtualDocumentRoot for 11 vhosts.
Frank.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: vhost multiple error logs
am 03.03.2010 02:52:12 von Greg Cole
> On 02/03/2010 8:02 PM, Greg Cole wrote:
>> How can I have multiple error logs based on virtual host names?
>>=20
>> something like this?
>>=20
>> NameVirtualHost *:80
>>=20
>>
>> VirtualDocumentRoot /Library/WebServer/Documents/%-3
>> ErrorLog logs/$HOSTNAME.error_log
>>
>>=20
>> I have 11 host names and really only wish to have one VirtualHost =
section.
>>=20
>> Thanks,
>> Greg
>>=20
>>=20
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server =
Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>=20
>> =20
On Mar 2, 2010, at 5:13 PM, Frank Gingras wrote:
> Greg,
>=20
> You can, use you use traditional name-based vhosts, yes. Besides, you =
don't need VirtualDocumentRoot for 11 vhosts.
>=20
> Frank.
>=20
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server =
Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>=20
So how can I get a unique, dynamically named error log for each host? =
Something like www.vhost1.org.error_log, www.vhost2.org.error_log,... =
All the while keeping this in one vhost section.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: vhost multiple error logs
am 03.03.2010 02:59:03 von Eric Covener
On Tue, Mar 2, 2010 at 8:52 PM, Greg Cole wrote:
>
> So how can I get a unique, dynamically named error log for each host? Something like www.vhost1.org.error_log, www.vhost2.org.error_log,... All the while keeping this in one vhost section.
You can't, because apache opens logfiles at startup not as requests arrive.
You can use something like mod_macro if you don't want to type out
your vhosts, or you can log the vhost name and split your logfiles
offline.
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org