Uwsgi: unrecognized '--https' option

I am using uwsgi 2.0.8 on AWS. I followed the instructions http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html to launch my web application.

uwsgi --master --https 0.0.0.0:8443,foobar.crt,foobar.key 

However, he reports this error: uwsgi: unrecognized option '--https' .

Does anybody help?

PS: I also installed uwsgi 2.0.8 on my own MBP, it works well with --https .

+5
source share
2 answers

The following is how I solved the same problem:

  • pip uninstall uwsgi
  • sudo apt-get install libssl-dev
  • (Assume I'm on / mnt / server) git clone https://github.com/unbit/uwsgi.git
  • cd uwsgi
  • python uwsgiconfig.py --build
  • (let's test) sudo / mnt / server / uwsgi / uwsgi --master --https 0.0.0.0-00-0043,foobar.crt,foobar.key,HIGH,ca.crt --chdir / mnt / server / mysite --module mysite.wsgi
+4
source

Try installing uwsgi using the command below on Mac:

 CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" UWSGI_PROFILE_OVERRIDE=ssl=true pip install uwsgi -Iv 
0
source

Source: https://habr.com/ru/post/1208398/


All Articles