D
D
DVoropaev2018-07-24 11:30:04
linux
DVoropaev, 2018-07-24 11:30:04

How to understand which nginx.conf is being used?

I read in the manual that the configuration file is called nginx.conf and is located in one of the directories
/usr/local/nginx/conf
/etc/nginx
/usr/local/etc/nginx.
But I have this file present in the first two.
How to understand which one is used and where it is configured/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
ky0, 2018-07-24
@ky0

nginx -V, then see parameter conf-path.

V
Vladislav Lyskov, 2018-07-24
@Vlatqa

2

E
Eugene, 2018-07-24
@e-antonov

/etc/init.d/nginx configtest
should show which config is testing and whether everything is fine with it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question