You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been enabling port forwarding on my router so I can access my jupyterlab workspace at https://mydomain.com:8888/, now I don't want to port forward anymore, I want to be able to access my workspace at https://mydomain.com/lab
After many trial and errors (i'm very noob here), I ended up with the following setting:
<VirtualHost *:443>
ServerName www.mydomain.com
ServerName mydomain.com
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyRequests Off
<Location "/lab">
ProxyPass http://localhost:8888/lab
ProxyPassReverse http://localhost:8888/lab
ProxyPassReverseCookieDomain localhost mydomain.com
RequestHeader set Origin "http://localhost:8888"
</Location>
<LocationMatch "/lab/(api/kernels/[^/]+/channels|terminals/websocket)/?">
ProxyPass ws://localhost:8888/lab/$1
ProxyPassReverse ws://localhost:8888/lab/$1
</LocationMatch>
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
Now I can access https://mydomain.com/lab, I can open any notebook, but cannot run my code, when I try to run a notebook, it seems to hang, this is what it shows when i try to open a console and print
and the terminal in jupyterlab doesn't work. This is the terminal when I open one
This is what printed out from Jupyterlab
And when I shut down the terminal, this is what printed out
I don't know where to find more information to debug this on my own, so sorry if this has been solved somewhere. Please point me to any resources.
I'm using Ubuntu 16.04, anaconda 4.8.2, output of conda list | grep jupyter
The text was updated successfully, but these errors were encountered:
thgngu
changed the title
Terminal in jupyter lab not working after set up with Apache ReverseProxy
Cannot run code or open terminal in jupyter lab after set up with Apache Reverse Proxy
Mar 3, 2020
The slashes are very important. For example, leaving the ending slash off /api/kernels/ breaks it, because you need HTTP proxying up /api/kernels and then WebSockets from /api/kernels/... on.
I have my personal domain https://mydomain.com (SSL by letsencrypt enabled), in Apache config, I have http redirected to https:
I have been enabling port forwarding on my router so I can access my jupyterlab workspace at https://mydomain.com:8888/, now I don't want to port forward anymore, I want to be able to access my workspace at https://mydomain.com/lab
After many trial and errors (i'm very noob here), I ended up with the following setting:
in jupyter_notebook_config.py
and in apache .conf
Now I can access https://mydomain.com/lab, I can open any notebook, but cannot run my code, when I try to run a notebook, it seems to hang, this is what it shows when i try to open a console and
print
and the terminal in jupyterlab doesn't work. This is the terminal when I open one
This is what printed out from Jupyterlab
And when I shut down the terminal, this is what printed out
I don't know where to find more information to debug this on my own, so sorry if this has been solved somewhere. Please point me to any resources.
I'm using Ubuntu 16.04, anaconda 4.8.2, output of
conda list | grep jupyter
Any help would be appreciated. Thank you
The text was updated successfully, but these errors were encountered: