Welcome! Log In Create A New Profile

Advanced

how to get the error line in the configuration file when nginx -t failure

Posted by hkahlouche 
how to get the error line in the configuration file when nginx -t failure
March 27, 2017 06:37PM
Is there a way to get the line number and the file name when the nginx configuration test fails.
nginx -t

I am getting the following error, but it doesn't say anything about which config file and line number this error comes from:

nginx: [emerg] ENGINE_load_private_key("385.1") failed (engine routines:ENGINE_load_private_key:failed loading private key)

I have a file for each server block.
It would good to know from which server block this error is originated.

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 250
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