在apache2.4.6中配置虚拟主机支持web.py
web.py 是一个简单好用的python web框架。 (http://webpy.org/)
apache httpd是一款开源配置简单的web容器。 (http://apache.org/)
假设您使用的是apache2.4.6,您可以通过以下配置支持web.py应用。
add the config of follow to /etc/httpd/conf/httpd.conf
<VirtualHost *:443>
DocumentRoot "/appvol/appname"
ServerName app.net
WSGIScriptAlias / /appvol/appname/index.wsgi/
Alias /static /appvol/appname/static/
AddType text/html .py
<Directory "/appvol/appname">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
如果您喜欢我,可以通过微信请我喝果汁。
如果有疑问,可以留言或者发邮件给我 lhh_nj@163.com