"server" directive is not allowed here error

Reinis Rozitis 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.

rr




More information about the nginx mailing list