nginxconfig.io icon indicating copy to clipboard operation
nginxconfig.io copied to clipboard

nginx: [emerg] "uwsgi_pass" directive is not allowed here in

Open platipusica opened this issue 5 years ago • 6 comments

Hi, simple config: Server default, SSL disabled, PHP disabled, Python enabled, Routing default, Logging default.

Service for Nginx reporting:

nginx: [emerg] "uwsgi_pass" directive is not allowed here in /etc/nginx/nginxconfig.io/python_uwsgi.conf:5

hence, service does not start on Ubuntu based system, latest release.

Line 5 is: uwsgi_pass unix:/tmp/uwsgi.sock;

Settings attached in PDF.

NGINX Config _ DigitalOcean.pdf

Please advice.

Thanks

platipusica avatar Jun 10 '20 10:06 platipusica

@platipusica, could you share the link to your configuration instead of the PDF, so that we can more easily reproduce your configuration?

MattIPv4 avatar Jun 10 '20 10:06 MattIPv4

https://www.digitalocean.com/community/tools/nginx?domains.0.server.domain=test.com&domains.0.server.path=%2Fvar%2Fwww%2Fhtml&domains.0.server.documentRoot=%2Fpub&domains.0.server.listenIpv6=&domains.0.https.https=false&domains.0.php.php=false&domains.0.python.python=true

platipusica avatar Jun 10 '20 10:06 platipusica

I can take a try at a fix here this!

fish-dango avatar Jun 20 '21 02:06 fish-dango

Hi y'all! Update on my end. I had a hard time getting the error nginx: [emerg] "uwsgi_pass" directive is not allowed here in /etc/nginx/nginxconfig.io/python_uwsgi.conf:5 on my machine for some reason.

Just curious, @MattIPv4 were you able to get this error on your machine when this issue came out?

fish-dango avatar Jun 23 '21 09:06 fish-dango

Hey -- I never had time to process this issue on my end, and am not particularly familiar with the ins and outs of doing Python deployments.

If you're unable to reproduce the issue with a fresh nginx setup & config from above, then I think I'd be happy to close this?

MattIPv4 avatar Jun 23 '21 11:06 MattIPv4

I can try again on new Ubuntu. But, if no one ever used uwsgi.sock, than I see no point. Fine to close with me. Cheers

platipusica avatar Jun 23 '21 11:06 platipusica