how to nginx virtual servers + fcgi for django?

后端 未结 2 1349
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 00:13

I would like to run several virtual hosts via nginx, each serving a different django app via fcgi. Is this possible? If so, does anyone have good resources on where/how to sta

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 00:57

    Since this question was asked someone created a pip installable django package that will generate an apache or nginx vhost file for you from your settings.py

    pip install django-vhost

    Check it out here: https://bitbucket.org/djangostars/django-vhost

提交回复
热议问题