Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] apache vhosts logging



On Tue, Jul 14, 2015 at 6:51 PM, Scott Robbins <scottro@example.com> wrote:
> On Tue, Jul 14, 2015 at 06:31:30PM +0900, Kalin KOZHUHAROV wrote:
>> Has anyone tried to use single access_log for several (but NOT all)
>> VirtualHosts?
>>
>> e.g.
>>
>> <VirtualHost 10.1.1.1:80>
>>    CustomLog /var/log/access_log
>> ....
>> </VirtualHost>
>>
>> <VirtualHost 10.2.2.2:81>
>>    CustomLog /var/log/access_log
>> ....
>
>
> The silly question--is there a good reason to not use separate logs?
>
It is not a silly question, it is a normal IT question.
My question is actually more of a security concern actually.

> That being said, we've had hosts where we didn't set up separate logs,
> everything writing to /var/log/httpd_access.log or similar and it never
> broke anything that we saw.
>
I assume that is a special case, since you only have one "CustomLog"
directive, it is supposed to work and I often use it.

That is why I highlighted the NOT in "single access_log for several
(but NOT all) VirtualHosts"...

Cheers,
Kalin.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links