大网数据广告活动
服务器运维问答

Which is Best way to serve multiple wsgi apps using apache2 with different python versions?

· 52CE 我爱测

Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to python2. What are my alternativ…

问题原文

原帖链接 · Liam · CC BY-SA 3.0

Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to python2. What are my alternatives to do the deploy? I thouth I could do another deploy using mod-uwsgi for python3.

PD: I'm also using virtualenvs.

Thanks!

已采纳解答

原帖链接 · user2233709 · CC BY-SA 4.0

This is quite an old question but, for those who might still wonder, you can use the uWSGI application server to run applications written in various languages (including Python 2 + Python 3), and then use Apache’s mod_proxy_uwsgi to relay requests to the uWSGI application.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-30)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。