Reinis Rozitis
June 04, 2017 09:46AM
> You can do
>
> nginx -T > mynginx.conf
>
> to have it in single file

This doesn't produce a valid (immediately usable) nginx configuration though, just concats/dumps out all the various configuration files referenced from the main config.

p.s. maybe it would make a sense to have a command line argument to export actually parsed (replace all the includes with actual file content) configuration.

rr


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

"server" directive is not allowed here error

Dino Edwards June 03, 2017 09:40AM

RE: "server" directive is not allowed here error

Reinis Rozitis June 03, 2017 02:22PM

RE: "server" directive is not allowed here error

Dino Edwards June 04, 2017 06:30AM

Re: "server" directive is not allowed here error

Anoop Alias June 04, 2017 06:32AM

Re: "server" directive is not allowed here error

Jim Ohlstein June 04, 2017 06:38AM

RE: "server" directive is not allowed here error

Reinis Rozitis June 04, 2017 07:42AM

Re: "server" directive is not allowed here error

pbooth June 04, 2017 09:00AM

Re: "server" directive is not allowed here error

oscaretu . June 04, 2017 09:10AM

Re: "server" directive is not allowed here error

Anoop Alias June 04, 2017 09:16AM

RE: "server" directive is not allowed here error

Reinis Rozitis June 04, 2017 09:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
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