在apache2.4.6中配置虚拟主机支持web.py

在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>

posted on 2019-02-24 23:26 李欢欢 阅读(...) 评论(...) 编辑 收藏

猜你喜欢

转载自blog.csdn.net/byygyy/article/details/88859471