Welcome! Log In Create A New Profile

Advanced

Logging application errors in the wrong place

August 16, 2016 04:22AM
Hi, I use Nginx with Passenger and the problem I have is that I get "some" application log entries in /var/log/nginx/error.log.
The problem is that the log is turned off and also pointing to another location (/mnt/nginx/logs/):

My configs:


nginx.conf

http

error_log /mnt/nginx/logs/error.log notice;
access_log /mnt/nginx/logs/access.log main;


application.conf

server

passenger_enabled on;
passenger_set_header HTTP_X_QUEUE_START "t=${msec}000";
passenger_set_header X-Unique-Request-Id "t=${msec}000";
passenger_set_header X-Real-IP $remote_addr;
passenger_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10M;
access_log off;
error_log off;

Any ideas?
Subject Author Posted

Logging application errors in the wrong place

robbanp August 16, 2016 04:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready