T
T
TechNOIR2020-04-22 11:40:59
Nginx
TechNOIR, 2020-04-22 11:40:59

nginx. Is it possible to include all *.conf from a folder ignoring one or more configs?

Good afternoon.

The config is specified to include configuration files from the corresponding folder
include /etc/nginx/special-conf/*.conf;
This folder contains the sipx.conf config. It does not need to be turned on, but it should remain in place.
Is it possible to somehow ignore it when importing?

thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-04-22
@TechNOIR

Create the directory /etc/nginx/special-conf-enabled, specify in the main nginx config - take configs from this directory and make the necessary symlinks from /etc/nginx/special-conf to this directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question