3

我是夹层和 Django 的新手。我已经建立了一个站点,一切正常,但我只能在“开发”上启动服务器。我想在 Internet 上而不是在内部访问端口 80 上的站点,因为除了通过 SSH 重定向端口来访问它之外,我别无他法。我想知道该怎么做。

还有一个问题,Nginx 是否自动包含在 Mezzanine 中?因为我在那里有一个调整好的 Nginx 服务器,我不确定我需要做什么,如果使用我现有的 Nginx 服务器或 Django 附带的服务器运行它,如果它是这样工作的......谢谢你带来对此有所了解。

4

1 回答 1

4

NGINX is not included with Mezzanine, it's an entirely separate piece of software, similar to Apache.

Mezzanine includes a fabric script which can automatically set up a production server if you'd like to use it, and will install NGINX on the server for you, among many other things.

Given your question, I can't recommend enough that you read and understand all the related documentation on this topic. Start with the Mezzanine link below, it references many other documentation sites - Django, Fabric, NGINX, plus more.

Enjoy the adventure: http://mezzanine.jupo.org/docs/deployment.html

于 2013-06-05T06:45:08.587 回答