2014-12-05 232 views
5

我在AWS上使用uwsgi 2.0.8。我按照http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html上的说明启动我的网络应用程序。uwsgi:无法识别的选项'--https'

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

但是,它报告此错误:uwsgi: unrecognized option '--https'

有人帮忙吗?

PS:我还在我自己的MBP上安装了uwsgi 2.0.8,它与--https一起工作良好。

+0

我找到解决方法。仅仅因为我在没有ssl支持的情况下安装了'uwsgi'。我安装了'libssl-dev'并重新编译了'uwsgi',它终于有效。 – Haoliang 2014-12-05 03:40:52

回答

4

下面是我如何解决同样的问题:

  1. PIP卸载uwsgi
  2. 命令和apt-get安装的libssl-dev的
  3. (假设我在/ mnt /服务器)的git克隆https://github.com/unbit/uwsgi.git
  4. CD uwsgi
  5. 蟒蛇uwsgiconfig.py --build
  6. (我们测试)须藤的/ mnt /服务器/ uwsgi/uwsgi --master --https 0.0.0.0:443,foobar。 crt,foobar.key,HIGH,ca.crt --chdir/mnt/server/mysite --module mysite.wsgi