☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Server_document() generated script not working with reverse proxy

Community Supportwebsiteserver
kwhallshaw
kwhallshaw

Hello,

I am struggling with embedding a bokeh server in an html document using the script generated by server_document(). The symptom is a 404 not found error on autoload.js when trying to access the app over a reverse proxy. I’d love some suggestions…

Details:

Software: Apache 2.4.6, Bokeh 2.0.1, CentOS 7.7

This works (direct): server_document (url=“example.com:5100/app”)

This fails (reverse proxy): server_document (“url=example.com/app",relative_urls=True,resources="default”)

Error reported by bokeh server:

2020-04-21 12:29:32,328 404 GET …autoload.js …

⌁   Link to post
Bryan
Bryan

I’m not sure what can be said from that brief description, except to note that the proxy will need to be configured to allow the path that is 404’ing, so that the page can load BokehJS from the Bokeh server. Alternatively, if it is an option in your situation, you could specify that the server should configure CDN resources, instead of serving BokehJS itself. I typically do that with an env var:

BOKEH_RESOURCES=cdn

Naturally, any viewer will need to have public internet access to cdn.bokeh.org for this option.

⌁   Link to post

End of archived discussion · Replies are disabled