Bokeh server with ngnix cause 404

Hello,

I’m working on a django based project which uses bokeh server for plotting data like in the bokeh happiness example. In the django app I use push_session to localhost:5006 to push the session to the server. For creating the html page I use autoload_server to get the js script to embedd it in my html page. Everything work really fine on my local machine with the django development server.
Now i want to deploy it on an a ngnix server to make it available in a local network. So I deloyed my django project and use the example form the bokeh doc “Reverse Proxying with Nginx” to redirect the ‘/bokeh/’ url to my bokeh server.

here my nginx config

server {
    listen 80;

location /static/ {
    root /home/vagrant/DjConChart;
}
location / {
    include uwsgi_params;
    uwsgi_pass unix:/home/vagrant/DjConChart/djcon_chart.sock;
}
location /bokeh/ {
    proxy_pass [http://127.0.0.1:5006](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;
}

My bokeh server i simply start with “bokeh serve”. Now my problem is that I get always a 404 error from the bokeh server when the browser tries to load the bokeh script. I can that the session was pushed in the log and I also can see that generated 404.

What do I wrong? Is there a possibility to show a list of all sessions in the browser?

It would be really create if someone can help me.

RedBeardCode