Jupyter Notebooks in a subdir with nginx.L.J. Hanson - December 13, 2016 - 1 min readPythonnginxJupyterNginx section for subdir: location ^~ /<subdir>/ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header HOST $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:8888; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade "websocket"; proxy_set_header Connection "Upgrade"; proxy_read_timeout 86400; } Configuration changes for Jupyter: c.NotebookApp.base_url = '/<subdir>/' c.NotebookApp.open_browser = False c.NotebookApp.password = '<password>' c.NotebookApp.trust_xheaders = True
No place like home...L.J. Hanson - February 23, 2016 - 1 min readThis is my site until I get bored and stop updating it.