"server" directive is not allowed here error
r at roze.lv
Sun Jun 4 13:45:04 UTC 2017
> 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.
More information about the nginx