Configure multiple logs in Apache

Asked

Viewed 54 times

0

I am working on an internal network where they are running 3 applications on the Apache server. I would like to be able to analyze the log generated by Apache separately for each application but since I don’t have access to the DNS server the Apache settings are in the default file: 000-default.conf.

In this case it would be possible to specify in this file where to save this log separately? Something like:

<Directory /home/user/www/app1/>
     ...
     ErrorLog /home/user/www/app1/storage/
</Directory>

<Directory /home/user/www/app2/>
     ...
     ErrorLog /home/user/www/app2/storage/
</Directory>
  • 1

    Yes. It’s as you posted... what the difficulty is?

  • Is that exactly how it is? Can I put the Errorlog directive inside the Directory? I couldn’t find anything like it in the Apache documentation, so I wondered.

  • 1

    You didn’t even try?

  • try one........

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.