I’m configuring bokeh app behind Nginx. Here’s my nginx configuration:
location /bokeh {
proxy_pass http://127.0.0.1:5006;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_buffering off;
}
I use below command to start bokeh app named “timeserie”:
bokeh serve timeserie --host myhost:80 --host localhost:80 --prefix=bokeh
Then when visiting http://myhost/bokeh, it will be redirected to http://myhost/bokeh/timeserie correctly.
Now I start two or more bokeh apps, like:
bokeh serve timeserie Task1 --host myhost:80 --host localhost:80 --prefix=bokeh
http://myhost/bokeh will display a “Active Bokeh Application” page with “timeserie” and “Task1” apps listed. However, the url of those apps are “http://myhost/timeserie” and “http://myhost/Task1”, not the desired “http://myhost/bokeh/timeserie” and “http://myhost/Task1”. Of course, clicking the url will get a 404 error.
Did I miss anything on the bokeh serve command parameters?