简体   繁体   English

Django部署-Apache设置

[英]Django Deployment - Apache setup

I'm working on deploying a django app and I'm looking at a few tutorials which install apache within the virtualenv. 我正在部署django应用,正在看一些在virtualenv中安装apache的教程。

http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/ http://michal.karzynski.pl/blog/2013/09/14/django-in-virtualenv-on-webfactions-apache-with-mod-wsgi/ http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/ http://michal.karzynski.pl/blog/2013/09/14/django-in-virtualenv-on-webfactions- apache-mod-wsgi /

My question is that if I'm trying to deploy to a server that already has Apache installed on it, would installing a separate version of apache within the environment (as you would Django in general) overwrite any of the Apache settings currently on the server? 我的问题是,如果我尝试部署到已经安装了Apache的服务器,则将在环境中安装单独版本的apache(就像Django一样)会覆盖服务器上当前的任何Apache设置?

Using virtualenv doesn't mean installing a separate version of Apache. 使用virtualenv并不意味着安装单独版本的Apache。 In fact, that's not even possible, because virtualenv is for Python libraries only. 实际上,这甚至是不可能的,因为virtualenv仅用于Python库。

Your Django app plus all its libraries lives in the virtualenv, but you use the system's Apache to serve it. 您的Django应用程序及其所有库都位于virtualenv中,但是您使用系统的Ap​​ache为其提供服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM