Welcome! Log In Create A New Profile

Advanced

read server blocks located in subfolders

Posted by qneo 
read server blocks located in subfolders
November 17, 2024 10:06AM
Right now I have lots of server blocks completely random in conf.d e.g.:

site-1.conf
site-2.conf
...

But I need more organization, e.g.:

conf.d/user-1/site-1.conf
conf.d/user-1/site-2.conf
conf.d/user-2/site-1.conf

Unfortunately, this does not seem to work unless I write/include each of the paths in a specific config file.

Is it possible to get nginx to read all the server blocks that are in the subfolders by e.g. only write "conf.d/*" or something similar?

Best regards
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready