digitalocean / nginxconfig.io

⚙️ NGINX config generator on steroids 💉
https://do.co/nginxconfig
MIT License
27.75k stars 2.05k forks source link

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

Open platipusica opened 4 years ago

platipusica commented 4 years ago

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

MattIPv4 commented 4 years ago

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

platipusica commented 4 years ago

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

fish-dango commented 3 years ago

I can take a try at a fix here this!

fish-dango commented 3 years ago

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?

MattIPv4 commented 3 years ago

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?

platipusica commented 3 years ago

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