Welcome! Log In Create A New Profile

Advanced

Re: Recusive includes

Maxim Dounin
September 21, 2015 09:38AM
Hello!

On Fri, Sep 18, 2015 at 03:09:51PM -0400, justink101 wrote:

> If I want to include all config files within a directly, and all child
> directories what is the syntax:
>
> If is still:
>
> include /etc/nginx/*.conf
>
> or is it:
>
> include /etc/nginx/**/*.conf

The "include" directive uses OS glob() syntax, so you should use
something like:

include /etc/nginx/*/*.conf;

Note that two asterisks are only understood by some shells and
won't be different from just one. That is, don't expect recursive
behaviour.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Recusive includes

justink101 September 18, 2015 03:09PM

Re: Recusive includes

justink101 September 18, 2015 03:11PM

Re: Recusive includes

Maxim Dounin September 21, 2015 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready