【发布时间】:2017-09-15 23:13:58
【问题描述】:
我想使用本地 httpd Web 服务器在 OpenBSD 上开发和部署瓶子应用程序。根据我的发现,uWSGI 将运行瓶子应用程序,httpd 将代理请求。我不了解 uWSGI 是如何启动的,也不了解如何在 OpenBSD 上使用 ini 文件。
我可以启动 httpd 并提供静态内容,并且我的 Bottle 应用程序可以在开发 Web 服务器和 pythonanywhere 上正常工作。现在我需要使用 httpd 和 uwsgi 运行它。如何启动 uwsgi 服务器?
httpd.conf
server "default" {
listen on egress port 80
location "/bottleapp/*" {
fastcgi socket ":3031"
}
}
types {
text/css css ;
text/html htm html ;
text/txt txt ;
image/gif gif ;
image/jpeg jpg jpeg ;
image/png png ;
application/javascript js ;
application/xml xml ;
}
【问题讨论】:
标签: apache uwsgi bottle openbsd