Bokeh 服务器的 Apache 代理错误

Bokeh 服务器的 Apache 代理错误

我的目标是在 Fedora 25 下运行的 Apache 服务器上部署 Bokeh 应用程序。启动 Bokeh 服务器后...

2017-05-10 18:17:27,759 Starting Bokeh server on port 5100 with applications at paths ['/clsMaster']

启动 apache 服务器后我得到

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /clsMaster.
Reason: DNS lookup failure for: 127.0.0.1:5100clsmaster

当我在浏览器中输入服务器的IP时:http://10.10.10.10:80/clsMaster/

所以我检查了我的/etc/httpd/conf.d/httpd_bokeh.conf但我发现了错误

   ServerRoot "/etc/httpd"
   Listen 80
   Include conf.modules.d/*.conf
   User apache
   Group apache
   ServerName localhost

 <VirtualHost *:80>
    DocumentRoot /var/www/dashboard/
    ServerAdmin [email protected]
    ErrorLog /var/www/dashboard/logs/bokeh-error_log
    CustomLog /var/www/dashboard/logs/bokeh-access_log common

    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:5100/
    ProxyPassReverse / http://127.0.0.1:5100/

    ProxyPass / http://127.0.0.1:5100/clsMaster/
    ProxyPassReverse / http://127.0.0.1:5100/clsMaster/

    <Directory />
            Require all granted
            Options -Indexes
    </Directory>

    Alias /static /var/www/dashboard/static
    <Directory /var/www/dashboard/static>
            Options +Indexes
    </Directory>
 </VirtualHost>

我的仪表板文件夹结构如下

/var/www/dashboard/
    |
    +---data
    |     +---mydata.csv
    |
    +---clsMaster.py
    |
    +---static
    |      +----some.html

奇怪的是,我指定的路径上没有产生任何日志var/www/dashboard/logs/bokeh-error_log。我无权访问/var/log/httpd/.

我也不明白的是,当我省略clsMasterURL 中的 时,http://10.10.10.10:80我得到的Service unavailable...不是上面的代理错误。

相关内容