在apache2服务器上运行网页时缺少BokehJS库
我试图在apache2服务器上显示bokeh呈现的网页,因此我遵循了,这是我的.conf文件:在apache2服务器上运行网页时缺少BokehJS库,apache,bokeh,Apache,Bokeh,我试图在apache2服务器上显示bokeh呈现的网页,因此我遵循了,这是我的.conf文件: <VirtualHost *:80> ServerName MyWebpageAdress.se ProxyPreserveHost On ProxyPass /ws ws://127.0.0.1:5100/webpage/ws ProxyPassReverse /ws ws://127.0.0.1:5100/webpage/ws ProxyPa
<VirtualHost *:80>
ServerName MyWebpageAdress.se
ProxyPreserveHost On
ProxyPass /ws ws://127.0.0.1:5100/webpage/ws
ProxyPassReverse /ws ws://127.0.0.1:5100/webpage/ws
ProxyPass / http://127.0.0.1:5100/webpage/
ProxyPassReverse / http://127.0.0.1:5100/webpage/
<Directory />
Require all granted
Options -Indexes
</Directory>
Alias /static /path/to/my/static/folder/
<Directory /path/to/my/static/folder/>
# directives to effect the static directors
Options +Indexes
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
ServerName MyWebPageAddress.se
代理主机
ProxyPass/ws://127.0.0.1:5100/webpage/ws
ProxyPassReverse/ws-ws://127.0.0.1:5100/webpage/ws
ProxyPass/http://127.0.0.1:5100/webpage/
ProxyPassReverse/http://127.0.0.1:5100/webpage/
要求所有授权
选项-索引
别名/static/path/to/my/static/folder/
#影响静态控制器的指令
选项+索引
ErrorLog${APACHE_LOG_DIR}/error.LOG
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合
我已将js
和lib
从venv/lib/site packages/bokeh/server/static
复制到我的静态文件夹中。但是,当我尝试访问该站点时,我只得到一个空白站点,当我检查页面时,我发现console.log(“Bokeh:ERROR:无法运行BokehJS代码,因为缺少BokehJS库”)代码>
(当我在本地查看页面时,该页面将按预期呈现)
知道我做错了什么吗?您需要添加所需的模块,并在更改后重新启动apache
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_wstunnel
apache2ctl restart
您是否遵循文档并添加了所需的模块?更改后是否重新启动了apache?感谢我没有启用3个模块中的1个模块(代理隧道),现在页面加载:)我很高兴能提供帮助。我也发表了我的评论作为回答。也许你可以将其标记为可接受的解决方案。