Flask Documentation (1.1.x)0.x/middleware/proxy_fix/#werkzeug.middleware.proxy_fix.ProxyFix ] middleware for running behind Nginx: from werkzeug.middleware.proxy_fix import ProxyFix app.wsgi_app = ProxyFix(app.wsgi_app) Wrapping Gunicorn uWSGI Gevent Twisted Web Proxy Setups uWSGI Starting your app with uwsgi Configuring nginx mod_wsgi (Apache) Installing mod_wsgi Creating a .wsgi file Configuring Apache Troubleshooting Support Environments FastCGI Creating a .fcgi file Configuring Apache Configuring lighttpd Configuring nginx Running FastCGI Processes Debugging CGI Creating a .cgi file Server Setup Standalone WSGI Containers0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)application’s wsgi_app attribute. For example, to apply Werkzeug’s ProxyFix middleware for running behind Nginx: from werkzeug.middleware.proxy_fix import ProxyFix app.wsgi_app = ProxyFix(app.wsgi_app) Wrapping --http 127.0.0.1:5000 --module myproject:app For a more optimized setup, see configuring uWSGI and NGINX. Gevent Gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level a simple nginx configuration which proxies to an application served on localhost at port 8000, setting appro- priate headers: server { listen 80; server_name _; access_log /var/log/nginx/access.log;0 码力 | 291 页 | 1.25 MB | 1 年前3
共 2 条
- 1
相关搜索词













