You install Nginx server depending on what Linux distributions (CentOS, Debian, Ubuntu, ArchLinux, etc.) or use a script that automatically complete the setting up web server location can be different. Please check one of several possible positions :
- /usr/local/nginx/conf/nginx.conf
- /etc/nginx/nginx.conf – Usually used in EasyEngine.
- /usr/local/etc/nginx/nginx.conf
- /etc/nginx/nginx.conf/nginx.conf
- /usr/local/nginx/conf/nginx.conf – Centminmod put it here.
- /etc/nginx/conf.d/nginx.conf – Ini in VPSSIM.
- C:\WT-NMP\conf\nginx.conf – WT-NMP is Nginx for Windows localhost.
It turns out you have to check one by one of the above directories but not found Nginx configuration file? Still no alternative solution is to ask directly to the program currently using nginx.conf located where:
" nginx -t "
Later will come the reply as follows:
" nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] listen() to 0.0.0.0:80, backlog 256 failed (98: Address already in use)
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed "
Actually, the above command is used to test the Nginx configuration and a side effect is to show the location of the file. And because there is an error it seems the end of this week I have to be busy troubleshooting the problem.
But my server is still normal, it's not vital. :-)) :-))