S
S
Sergey Chizhik2014-07-31 11:40:24
Nginx
Sergey Chizhik, 2014-07-31 11:40:24

How to view nginx config output (with all includes)?

Subject. How to see the configuration that is obtained at the output with all the inclusions?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey Petrikov, 2014-07-31
@kzooz

As far as I know, there is no regular tool, but you can write your own script that will insert the entire text of the corresponding include into the config instead of include and then display the entire sheet.

O
Opteme, 2018-09-04
@Opteme

-T
https://nginx.org/ru/docs/switches.html

S
Szen, 2021-04-26
@Szen

Will output everything to a file, including includes and expand them:
nginx -T > ~/all_nginx.conf

I
Igor, 2014-07-31
@merryjane

No way.
You can only test it with the command:
nginx -t

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question