• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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