I believe I have an error in one of my nginx configs. I have tried:
$ sudo service nginx restart
* Restarting nginx nginx [fail]
$
After some googling i then tried the following:
$ sudo service nginx -t
Usage: nginx {start|stop|restart|reload|force-reload|status|configtest|rotate|upgrade}
but it only shows the list of commands. There are no messages about config errors in the nginx log or syslog. How i can get more detailed error message?