基于IP的主机不能处理apache2

时间:2015-09-28 21:05:28

标签: flask apache2

我正在尝试在apache2上运行我的Python Flask后端。我的conf文件如下所示:

<virtualhost 192.168.11.11:80>
         ServerName travelhook
         WSGIDaemonProcess travelhook group=www-data threads=5   
         WSGIScriptAlias / /var/www/TravelHookBE/travelhookBE.wsgi
         <directory /var/www/TravelHookBE>
            WSGIProcessGroup travelhook
            WSGIApplicationGroup %{GLOBAL}
            WSGIScriptReloading On
            Order deny,allow
            Allow from all

         </directory>
</virtualhost>  

但是当我在浏览器中使用192.168.11.11:80时,它无法正常工作。我在同一台机器上的浏览器上在Ubuntu上运行它

0 个答案:

没有答案