nginx: [emerg] "user" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:1 #2573
Answered
by
IavTavares
IavTavares
asked this question in
Q&A
-
I've dockerized a Flask+Gunicorn+Nginx app. I'm running from an Nginx image. The file nginx.conf has the following code:
Note:
|
Beta Was this translation helpful? Give feedback.
Answered by
IavTavares
Apr 4, 2022
Replies: 1 comment
-
The problem is that there's already another file /etc/nginx/nginx.conf, which is including these variables, and the configuration in the file /etc/nginx/conf.d/nginx.conf.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
IavTavares
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is that there's already another file /etc/nginx/nginx.conf, which is including these variables, and the configuration in the file /etc/nginx/conf.d/nginx.conf.
I need to remove