我有一个带有Tornado的Python脚本,我在端口8088上运行我的程序,如下所示:
http://144.44.44.44:8088/web
现在,我想映射到端口号80并像这样运行此脚本:
http://144.44.44.44/web
我正在使用带有apache和httpd服务的Centos7。
我尝试创建虚拟服务器但无法配置成功!
我创建了配置文件:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName web.whisla.com
ProxyPreserveHost On
ProxyPass / http://144.44.44.44:8088/web
ProxyPassReverse / http://144.44.44.44:8088/web
ErrorLog /opt/whisla/error.log
LogLevel warn
CustomLog /opt/whisla/access.log combined
ServerSignature Off
</VirtualHost>
我也有
中的配置目录/etc/httpd/conf.d/
/etc/httpd/conf/
但不知道怎么回事!
如何使用apache服务器配置此Tornado?