Re:NGINX as a SPDY reverse proxy for Node.js
by victorquinn on Monday October 13, 2014 @07:07PM
(#8451153)
Awesome, thanks so much moduloo!
This is very helpful, I'll definitely be using this to update my nginx.conf file!
instead of "if ($host !~ ^(api.yourdomain.com)$ )" you should use a "server_name api.yourdomain.com;" - directive for your proxy_config and a catch_all - server{} block that consist only of "return 444;" to avoid that "if"-processing on any request.
oh, and you might want to use "ssl_session_cache shared:SSL:1440m;" for better performance (adjust the timeframe accordingly, i've seen values from 10 minutes up to 48hours like google)
> SSL certs tend to be rather confusing ... no not, really, but i leave it up to you to figure out what a key is and what a cert :D