I have jupyter running on port 8000 and jupyter lab running on 8888. Nginx configuration looks like (server listens on port 80):
location /julia/ {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
access_log /var/log/nginx/julia-access.log;
error_log /var/log/nginx/julia-error.log;
}
and
location /jupyterlab/ {
proxy_pass http://localhost:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
access_log /var/log/nginx/jlab-access.log;
error_log /var/log/nginx/jlab-error.log;
}
/julia works fine
/jupyterlab doesn't, but server:8888 works fine.
Why? What to change?
On 8787 I've got RStudio, with nginx config:
location / {
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787/ $scheme://$host/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
access_log /var/log/nginx/rstudio-access.log;
error_log /var/log/nginx/rstudio-error.log;
}
Maybe I should remove Jupyter (/julia/) and leave only JupyterLab?