Web.py Cookbook 简体中文版 - deploying web.py with nginx and mod_wsgi
2012-11-23 11:11
477 查看
t is possible to deploy web.py with nginx using a mod_wsgi similar to the module for Apache.
After compiling and installing nginx with mod_wsgi, you can easily get a web.py app up and running with the following config* (edit the paths and settings with your own):
Note: This is a snippet of the relevant information to setup mod_wsgi for your web app and NOT a full config for running nginx.
Helpful links:
nginx website
wiki page on mod_wsgi
After compiling and installing nginx with mod_wsgi, you can easily get a web.py app up and running with the following config* (edit the paths and settings with your own):
wsgi_python_executable /usr/bin/python; server { listen 80; server_name www.domain_name.com domain_name.com; root /path/to/your/webpy; include /etc/nginx/wsgi_vars; location / { wsgi_pass /path/to/your/webpy/app.py; } }
Note: This is a snippet of the relevant information to setup mod_wsgi for your web app and NOT a full config for running nginx.
Helpful links:
nginx website
wiki page on mod_wsgi
相关文章推荐
- Web.py Cookbook 简体中文版 - Webpy + Nginx with FastCGI搭建Web.py
- Web.py Cookbook 简体中文版 - Testing with Paste and Nose
- Web.py Cookbook 简体中文版 - 使用Apache + mod_wsgi部署webpy应用
- Webpy + Apache with mod_wsgi on Ubuntu http://webpy.org/cookbook/mod_wsgi-apache-ubuntu
- Web.py Cookbook 简体中文版 - Web.py using FastCGI and Apache 2
- Web.py Cookbook 简体中文版 - 理解URL控制
- Web.py Cookbook 简体中文版 - 整合 SQLite UDF (用户定义函数) 到 webpy 数据库层
- Web.py Cookbook 简体中文版 - File Upload Recipe
- Web.py Cookbook 简体中文版 - db.upate 数据更新
- Web.py Cookbook 简体中文版 - sqlalchemy
- Web.py Cookbook 简体中文版 - 怎样使用数据库事务处理
- Web.py Cookbook 简体中文版 - 跳转(seeother)与重定向(redirect)
- Web.py Cookbook 简体中文版 - How to use templates on Google App Engine
- Web.py Cookbook 简体中文版 - 从post读取原始数据
- Web.py Cookbook 简体中文版 - 在webpy中使用Mako模板引擎
- Web.py Cookbook 简体中文版 - 通过Fastcgi和lighttpd部署
- Web.py Cookbook 简体中文版 - Use Jinja2 template engine in webpy
- Web.py Cookbook 简体中文版 - 管理自带webserver日志
- Web.py Cookbook 简体中文版 - Import functions into templates
- Web.py Cookbook 简体中文版 - 上传文件大小限定