• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question "error_log .../error.log info;" in nginx.conf

seabiscuit

New Pleskian
Hi,

I need error logs at info level for all domains.
The "error_log /var/log/nginx/error.log info;" directive is working at the server level but not at domain level.

How can I achieve info level error logging at domain level for all the domains hosted? Thanks
 
Ok folks,

in "/etc/nginx/plesk.conf.d/vhosts/example.com.conf" ,

I changed the line:
error_log "/var/www/vhosts/system/example.com/logs/proxy_error_log";
to:
error_log "/var/www/vhosts/system/example.com/logs/proxy_error_log" info;

...now I have additional info on the errors. I needed this for ModSec by the way.

But this is far from ideal. How can I get this achieved when creating new vhosts (domains). I think there is a template somewhere ...

Rgrds
 
Back
Top