Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

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

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>