Trying to set up Jupyter Notebook using Apache2

Hey All. Complete newbie to all things Linux.

I am following the Linode tutorial on how to setup a Jupyter Notebook using Apache2 on my Linode Server. When I start the Notebook, I try to access my server via Chrome and I get "This site can't provide secure connection" (ERR_SSL_PROTOCOL_ERROR).

I created the self-signed SSL, configured Jupyter and Apache (pointing both to cert and key paths), hashed pw is in Jupyter config. No dice.

Any help is appreciated. "path" and "IP Address" are the actual values in the live files.

Apache config

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    SSLCertificateFile /path/mycert.pem
    SSLCertificateKeyFile /path/mykey.key
    SSLProxyEngine On
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off

    ServerName localhost
    ProxyPreserveHost On
    ProxyRequests Off
    LogLevel debug

    ProxyPass /jupyter https://localhost:443/jupyter
    ProxyPassReverse /jupyter https://localhost:443/jupyter
    RequestHeader set Origin "https://localhost:443"
    Redirect permanent / https://IP Address/jupyter

    <Location "/jupyter/api/kernels">
        ProxyPass ws://localhost:443/jupyter/api/kernels
        ProxyPassReverse ws://localhost:443/jupyter/api/kernels
    </Location>

    </VirtualHost>

Running Notebook

hunna@localhost:~$ jupyter notebook
[I 00:48:31.288 NotebookApp] JupyterLab extension loaded from /home/hunna/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 00:48:31.288 NotebookApp] JupyterLab application directory is /home/hunna/anaconda3/share/jupyter/lab
[I 00:48:31.295 NotebookApp] Serving notebooks from local directory: /home/hunna
[I 00:48:31.296 NotebookApp] The Jupyter Notebook is running at:
[I 00:48:31.296 NotebookApp] http://localhost:8888/?token=c8be03208ee40ba8f5636f495486ef80b8a461b6ef42ab96
[I 00:48:31.296 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 00:48:31.297 NotebookApp] No web browser found: could not locate runnable browser.
[C 00:48:31.298 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=c8be03208ee40ba8f5636f495486ef80b8a461b6ef42ab96

2 Replies

I'm not familiar with Jupyter Notebook, though when it comes to troubleshooting SSL configuration issues, I use an online SSL checker. They're helpful with pinpointing where it failed to resolve the SSL cert. Here are some helpful online checkers:

Hey there! Just wanted to let you know that Jupyter can be easily deployed from the Linode Marketplace. To launch the classic Jupyter Notebook specifically, first deploy a JupyterLab instance, log in, in the top toolbar under Help, select "Launch Jupyter Notebook File Browser". Hope this helps!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct