/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 *:80 Listen 80 NameVirtualHost *:81 Listen 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
时间: 2024-11-08 10:25:54