Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gabotronix's avatar

Nginx logs per webapp?

Hi everybody, I'm using nginx as a webserver and I want to deploy a laravel app in my vps, I want to have nginx dump error and access logs in their respective files, that is so each server block (web) has its own logs, I think this wwould be the best for managing the logs and debugging.

So this may seem like a noob question but how do I create log files on my ubuntu enviroment, should I just:

sudo nano /etc/nginx/logs/app1-access.log
0 likes
1 reply
aurawindsurfing's avatar

@gabotronix but why you want this and need this?

Just create your own log and log everything you need in there. There are few nice bug tracking SaaS services like:

Understand.io Rollbar.com

to name few

Please or to participate in this conversation.