linode apache 部署web.py配置
wget http://webpy.org/static/web.py-0.36.tar.gz
tar -zxvf web.py-0.36.tar.gz
cd web.py-0.36
python setup.py install
apt-get install libapache2-mod-wsgi
service apache2 restart
vi apache2.conf
添加
WSGIScriptAlias /12306 "/srv/www/quancha.cn/public_html/12306/code.py/"
Alias /12306/static "/srv/www/quancha.cn/public_html/12306/static/"
AddType text/html .py
<Directory "/srv/www/quancha.cn/public_html/12306">
Order allow,deny
Allow from all
</Directory>
service apache2 restart
使用 http://ip/12306就可以访问网站了。