☰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

Bokeh with NGINX reverse proxy gives a Blank White Screen

Community Support
Sebastian_Maurice
Sebastian_Maurice

Thanks Brian. I am going to try this out and report back. Btw i notice two different nginx conf any reason why?

Also I run Nginx anf Boken in same server.

···

On Oct 3, 2017 9:13 PM, “Bryan Van de ven” bryan@bokeh.org wrote:

Hi,

So there are things about your Nginx config I simply don’t know enough about to really adapt. So I went back to the guidance in the users docs, and found a configuration that is working. I hope that it will prove useful enough as a comparison to get you going and adapt to your setup. For reference, I used Nginx 1.13.5 on Win 10 with Bokeh 0.12.9.

After the two steps below, I navigated to http://192.168.155.129/bokehwhatif in a browser outside the VM and could see and interact with the app as expected.

  1. Start bokeh server with this command:

     bokeh serve bokehwhatif.py --allow-websocket-origin 192.168.155.129 --port 5100
    
  2. Start Nginx wit this config:

#user nobody;

worker_processes 4;

events {

worker_connections  1024;

}

http {

sendfile on;

tcp_nopush on;

tcp_nodelay on;

keepalive_timeout 65;

types_hash_max_size 2048;

default_type application/octet-stream;

gzip on;

gzip_min_length 1100;

gzip_buffers 4 32k;

open_file_cache max=10000 inactive=10m;

open_file_cache_valid 2m;

open_file_cache_min_uses 1;

open_file_cache_errors on;

ignore_invalid_headers on;

client_max_body_size 8m;

client_header_timeout 3m;

client_body_timeout 3m;

send_timeout 3m;

connection_pool_size 256;

client_header_buffer_size 4k;

large_client_header_buffers 4 32k;

request_pool_size 4k;

output_buffers 4 32k;

postpone_output 1460;

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;

}

}

}

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

#include C:/Users/smaurice/AppData/Local/Programs/Python/Python35/Lib/site-packages/bokeh/server/static/;
gzip_types text/plain application/x-javascript text/xml text/css application/json;
server {

listen 192.168.155.129;

server_name _;



access_log C:/Users/builder/nginxlog/access.log;

error_log  C:/Users/builder/nginxlog/error.log debug;



location / {

    proxy_pass [http://127.0.0.1:5100](http://127.0.0.1:5100);

proxy_set_header Host $host:$server_port;

    proxy_buffering off;

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8C5088D8-B484-43D2-A70E-B4405C14CB25%40anaconda.com.

⌁   Link to post
Bryan
Bryan

One is for running nginx and bokeh server on the same machine, and the other is for running them on different machines.

Thanks,

Bryan

···

On Oct 4, 2017, at 17:30, Sebastian Maurice <sebastian.maurice@gmail.com> wrote:

Thanks Brian. I am going to try this out and report back. Btw i notice two different nginx conf any reason why?

Also I run Nginx anf Boken in same server.

On Oct 3, 2017 9:13 PM, "Bryan Van de ven" <bryan@bokeh.org> wrote:
Hi,

So there are things about your Nginx config I simply don't know enough about to really adapt. So I went back to the guidance in the users docs, and found a configuration that is working. I hope that it will prove useful enough as a comparison to get you going and adapt to your setup. For reference, I used Nginx 1.13.5 on Win 10 with Bokeh 0.12.9.

After the two steps below, I navigated to http://192.168.155.129/bokehwhatif in a browser outside the VM and could see and interact with the app as expected.

1) Start bokeh server with this command:

        bokeh serve bokehwhatif.py --allow-websocket-origin 192.168.155.129 --port 5100

2) Start Nginx wit this config:

#user nobody;

worker_processes 4;

events {
    worker_connections 1024;
}

http {
  sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
#include C:/Users/smaurice/AppData/Local/Programs/Python/Python35/Lib/site-packages/bokeh/server/static/;

default_type application/octet-stream;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css application/json;
open_file_cache max=10000 inactive=10m;
open_file_cache_valid 2m;
open_file_cache_min_uses 1;
open_file_cache_errors on;
ignore_invalid_headers on;
client_max_body_size 8m;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;

server {
    listen 192.168.155.129;
    server_name _;

    access_log C:/Users/builder/nginxlog/access.log;
    error_log C:/Users/builder/nginxlog/error.log debug;

    location / {
        proxy_pass http://127.0.0.1:5100;
        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;
    }

}

}

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8C5088D8-B484-43D2-A70E-B4405C14CB25%40anaconda.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CADZk7rEMzkJkSYcrwuFznJyER9MpCoZ08HopGO%2BDjJ3q_OrZQA%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Sebastian_Maurice
Sebastian_Maurice

Hi - it worked! in addition to the suggested changes to the conf - i had to modify my regexp a bit…thanks for your help Bryan! You’re awesome :slight_smile:

···

On Tue, Oct 3, 2017 at 9:13 PM, Bryan Van de ven bryanv@anaconda.com wrote:

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

So there are things about your Nginx config I simply don’t know enough about to really adapt. So I went back to the guidance in the users docs, and found a configuration that is working. I hope that it will prove useful enough as a comparison to get you going and adapt to your setup. For reference, I used Nginx 1.13.5 on Win 10 with Bokeh 0.12.9.

After the two steps below, I navigated to http://192.168.155.129/bokehwhatif in a browser outside the VM and could see and interact with the app as expected.

  1. Start bokeh server with this command:

     bokeh serve bokehwhatif.py --allow-websocket-origin 192.168.155.129 --port 5100
    
  2. Start Nginx wit this config:

#user nobody;

worker_processes 4;

events {

worker_connections  1024;

}

http {

sendfile on;

tcp_nopush on;

tcp_nodelay on;

keepalive_timeout 65;

types_hash_max_size 2048;

#include C:/Users/smaurice/AppData/Local/Programs/Python/Python35/Lib/site-packages/bokeh/server/static/;

default_type application/octet-stream;

gzip on;

gzip_min_length 1100;

gzip_buffers 4 32k;

gzip_types text/plain application/x-javascript text/xml text/css application/json;

open_file_cache max=10000 inactive=10m;

open_file_cache_valid 2m;

open_file_cache_min_uses 1;

open_file_cache_errors on;

ignore_invalid_headers on;

client_max_body_size 8m;

client_header_timeout 3m;

client_body_timeout 3m;

send_timeout 3m;

connection_pool_size 256;

client_header_buffer_size 4k;

large_client_header_buffers 4 32k;

request_pool_size 4k;

output_buffers 4 32k;

postpone_output 1460;

server {

listen 192.168.155.129;

server_name _;



access_log C:/Users/builder/nginxlog/access.log;

error_log  C:/Users/builder/nginxlog/error.log debug;



location / {

    proxy_pass [http://127.0.0.1:5100](http://127.0.0.1:5100);

    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;

}

}

}

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8C5088D8-B484-43D2-A70E-B4405C14CB25%40anaconda.com.

–


Sebastian Maurice, PhD

Mobile: 403-612-5443

⌁   Link to post
Bryan
Bryan

I am very glad to heard that, if there are things that can be done to make the docs clearer or more accessible please let us know,

Bryan

···

On Oct 6, 2017, at 13:28, Sebastian Maurice <sebastian.maurice@gmail.com> wrote:

Hi - it worked! in addition to the suggested changes to the conf - i had to modify my regexp a bit...thanks for your help Bryan! You're awesome :slight_smile:

On Tue, Oct 3, 2017 at 9:13 PM, Bryan Van de ven <bryan@bokeh.org> wrote:
Hi,

So there are things about your Nginx config I simply don't know enough about to really adapt. So I went back to the guidance in the users docs, and found a configuration that is working. I hope that it will prove useful enough as a comparison to get you going and adapt to your setup. For reference, I used Nginx 1.13.5 on Win 10 with Bokeh 0.12.9.

After the two steps below, I navigated to http://192.168.155.129/bokehwhatif in a browser outside the VM and could see and interact with the app as expected.

1) Start bokeh server with this command:

        bokeh serve bokehwhatif.py --allow-websocket-origin 192.168.155.129 --port 5100

2) Start Nginx wit this config:

#user nobody;

worker_processes 4;

events {
    worker_connections 1024;
}

http {
  sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
#include C:/Users/smaurice/AppData/Local/Programs/Python/Python35/Lib/site-packages/bokeh/server/static/;

default_type application/octet-stream;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css application/json;
open_file_cache max=10000 inactive=10m;
open_file_cache_valid 2m;
open_file_cache_min_uses 1;
open_file_cache_errors on;
ignore_invalid_headers on;
client_max_body_size 8m;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;

server {
    listen 192.168.155.129;
    server_name _;

    access_log C:/Users/builder/nginxlog/access.log;
    error_log C:/Users/builder/nginxlog/error.log debug;

    location / {
        proxy_pass http://127.0.0.1:5100;
        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;
    }

}

}

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8C5088D8-B484-43D2-A70E-B4405C14CB25%40anaconda.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
-----
Sebastian Maurice, PhD
Mobile: 403-612-5443

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CADZk7rEMc%3D8dcULB8YzeCkQPc4iqZ3kvzgcCCvyPR%3DcUvwkvyQ%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled