<div dir="ltr"><div><div>Interesting. I'm actually installing nginx using the nginx cookbook (<a href="https://github.com/opscode-cookbooks/nginx">https://github.com/opscode-cookbooks/nginx</a>). The version on the box is rather old, and apparently ignoring my config.<br>
<br><span style="font-family:courier new,monospace">vagrant@ipynb-cookbook-berkshelf:~$ nginx -v<br>nginx version: nginx/1.1.19</span><br><br></div>I'll definitely get a newer version installed pronto! Thanks Min!<br>
<br></div>-- Kyle<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 25, 2013 at 12:00 PM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">nginx support for websocket proxying is a relatively recent addition ([docs](<a href="http://nginx.org/en/docs/http/websocket.html" target="_blank">http://nginx.org/en/docs/http/websocket.html</a>) suggests 1.3.13.  Is it possible your version doesn't have this support?<div>


<br></div><div>-MinRK</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sat, Aug 24, 2013 at 12:45 AM, Kyle Kelley <span dir="ltr"><<a href="mailto:rgbkrk@gmail.com" target="_blank">rgbkrk@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div>Hey all,<br><br></div>Has anyone gotten nginx proxying to work when using ssl? I started off with MinRK's nginx config (<a href="https://twitter.com/minrk/status/329376092420993024" target="_blank">https://twitter.com/minrk/status/329376092420993024</a>), adding on to it like so:<br>



<br><span style="font-family:courier new,monospace">server {<br>    listen 80;<br>    rewrite        ^ https://$host$request_uri? permanent;<br>}<br><br>server {<br>    listen 443;<br>    ssl on;<br>    ssl_certificate /etc/nginx/ssl/cert.pem;<br>



    ssl_certificate_key </span><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">/etc/nginx/ssl/cert.key</span>%>;<br><br>    error_log /var/log/nginx/error.log;<br><br>    location ^~ /static/ {<br>



        alias /home/ipynb/ipyvirt/lib/python2.7/site-packages/IPython/html/static/;<br>    }<br><br>    location / {<br>      proxy_pass <a href="http://localhost:9999" target="_blank">http://localhost:9999</a>;<br><br>      #proxy_set_header X-Real-IP $remote_addr;<br>



      #proxy_set_header Host $http_host;<br>      #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br><br>      #proxy_set_header X-NginX-Proxy true;<br><br>      # WebSocket support<br>      proxy_http_version 1.1;<br>



      proxy_set_header Upgrade $http_upgrade;<br>      proxy_set_header Connection "upgrade";<br>      proxy_read_timeout 86400;<br><br>   }<br>}</span><br><br></div>Most of the proxying works just fine, but websockets fail. I could host this using the certfile and keyfile setting in IPython (and not use nginx), but was hoping to proxy from some high port by a non-privileged user to port 443 (with a redirect from 80).<span><font color="#888888"><br>



<br></font></span></div><span><font color="#888888">-- Kyle<br><div><div><br></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>