小编GMa*_*ath的帖子

散景服务器 + 使用 Nginx 进行反向代理提供 404

我正在尝试设置 Bokeh 服务器并使用 Nginx 对其进行反向代理。

我的 p-website.conf 现在看起来像:

server {
listen   80;
server_name  website.com;
client_max_body_size 25M;
access_log  /var/www/logs/p-website.access.nginx.log;
error_log  /var/www/logs/p-website.error.nginx.log error;
root    /var/www/pydocs/website/production/src;

include global/restrictions.conf;


location /plot/ {
    proxy_pass http://website.com: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;
}

location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    # enable this if and only if you use HTTPS, this helps Rack
    # set the proper protocol for doing redirects:
    # proxy_set_header X-Forwarded-Proto https;

    proxy_set_header Host …
Run Code Online (Sandbox Code Playgroud)

python proxy nginx bokeh

2
推荐指数
1
解决办法
2192
查看次数

标签 统计

bokeh ×1

nginx ×1

proxy ×1

python ×1