jupyterhub nginx reverse proxy
<p>I'm trying to get a reverse proxy (nginx) to work with juypterhub.  I want the service available at myurl.com/jhub/.  I placed the following in the config: </p>

<pre><code>location /jhub/ {
        proxy_pass http://127.0.0.1:8000/;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header X-NginX-Proxy true;  

        #WebSocket support

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 86400;
  }
</code></pre>

<p>However, when I try the url after restarting the proxy jupyterhub is not available and I get a '404' Not Found error.  I've tried every combination of ports and address with no luck.  The same approach works just fine for RStudio server.... What am I missing?</p>