Overview
Nginx is becoming one of the more popular event driven web servers. As of October 2014, it is currently used amongst the top 20% of the most busiest websites today Netcraft. Setting up SSL should not be a daunting task, so I created a default SSL configuration (from Raymii.org) and Nodejs config here.
You can setup multiple sub domains in the same server config:
1 | server_name abc-dev.sample.com abc.sample.com; |
Redirect all HTTP to HTTP requests permanently (301):
1 | if ($scheme != "https") { |
Also, redirect any unsupported client browsers:
1 | ## redirect ie8 and lower |
Best,
Chris