0

我想从 EC2 实例建立一个部分开发的网站。该网站正在使用 Pyramid Web 框架开发。是否可以从 EC2 设置简单的女服务员服务器?

我尝试了这些说明来设置 Apache 服务器。但是当我将浏览器指向公共 DNS 时,我收到“网站响应时间过长”的错误消息。

4

1 回答 1

2

First of all, I'd recommend using mod_wsgi. I think it's the easiest to set up. Ignoring that, waitress is a WSGI server. It can run on port 80 directly if you want to.

[server:main]
use = egg:waitress
host = 0.0.0.0
port = 80

Unfortunately, if you do this, you need to be root. A better approach is to set the waitress server on an unprivileged port such as 8000 and use a reverse proxy to forward requests to your site.

Look at the deployment recipes in the pyramid cookbook here:

http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/deployment/index.html

于 2012-04-17T04:28:46.040 回答