首页 > 代码库 > Ubuntu系统使用apache部署多个django项目(python4.3)

Ubuntu系统使用apache部署多个django项目(python4.3)

/etc/apache2/sites-available/pyweb.conf

<VirtualHost *:81>    ServerName 192.168.1.46       DocumentRoot /var/www/pyweb/pyweb          <Directory /var/www/pyweb/pyweb>                  Order allow,deny                  Allow from all          </Directory>          WSGIScriptAlias / /var/www/pyweb/pyweb/wsgi.py    ErrorLog ${APACHE_LOG_DIR}/error_81.log    CustomLog ${APACHE_LOG_DIR}/access_81.log combined</VirtualHost>

/etc/apache2/ports.conf

NameVirtualHost *:80Listen 80NameVirtualHost *:81Listen 81<IfModule ssl_module>    Listen 443</IfModule><IfModule mod_gnutls.c>    Listen 443</IfModule>

 

参考:

http://www.cnblogs.com/helloworldtoyou/p/5978977.html

http://www.cnblogs.com/codemyzen/p/3690042.html

http://blog.csdn.net/o_surface_o/article/details/23278837

http://www.jianshu.com/p/b40a4a12fff1

http://blog.csdn.net/gamer_gyt/article/details/52135349

防火墙问题请参考:

 

http://www.cnblogs.com/jiangyao/archive/2010/05/19/1738909.html

Ubuntu系统使用apache部署多个django项目(python4.3)