Demo for building non-blocking HTTP components

Issue #28 new
Ray Ch
created an issue

Can you include examples for basic HTTPS. If possible even H2 and SPDY Protocols.

Comments (2)

  1. Andriy Kornatskyy repo owner

    I use nginx as a web server, ssl offload and reverse proxy to application server. You can find an example http://mindref.blogspot.com/2011/11/nginx-rewrite-all-to-https.html and http://mindref.blogspot.com/2014/08/wheezy-web-deploy-nginx-uwsgi-memcached.html.

    Both HTTP2 and SPDY do not require anything from your application in case you use a web server that supports them. nginx supports SPDY starting from version 1.5 and support for HTTP2 is planned. The only thing you have to do is compile nginx from source since that module is not enabled by default. You can activate it simply by adding spdy to listen directive, e.g.

    listen 8.8.8.8:443 ssl spdy;
    

    Later you can use firefox https://addons.mozilla.org/en-US/firefox/addon/spdy-indicator/ to see if it works.

    google is an example for HTTP2 and duckduckgo for SPDY. There are many CDN sites as well.

  2. Log in to comment