Closed solracsf closed 4 years ago
You don't need the includes in your nginx.conf as they will already get loaded because of
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/vhosts/*.conf;
This would be causing the duplication and EMERG error So comment them out, reload nginx and test the blocker.
Lol, what a newbie error....
We all make them. Enjoy it.
Did you look through existing ISSUES ?
Yes, but what i found explicitly demonstrates duplicates, but not in my case...
Describe the problem you are experiencing
Just can't have nginx pass tests unless config options are commented out...
Error Messages
Tried to search that string, it only founds one instance:
If i comment out line 16, it complains about line 17, if comment 17 it complains about line 18 of that same file, etc...
Only way to nginx pass tests, is to comment out the two lines on nginx.conf
Copy of nginx.conf
Copy of vhost / website / host .conf file
Copy of common.conf
Copy of proxy.conf
Copy of headers.conf
Copy of locations.conf
Server (please complete the following information):
Operating System:
[x] Ubuntu