From 98db5e1d0497fe17b29a499dc46e8b4322163980 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 25 Jun 2014 19:56:04 -0600 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9294b16..88ec3c5 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,27 @@ and played around for an hour until it did. :-) +File hierarchy: + +``` +webapps/ +└── vhosts + ├── aj.the.dj + │   └── ssl + │   ├── server.crt + │   └── server.key + ├── ballprovo.com + │   └── ssl + │   ├── server.crt + │   └── server.key + ├── server.js + └── ssl + ├── Geotrust Cross Root CA.txt + └── Rapid SSL CA.txt +``` + + +`server.js`: ```javascript 'use strict'; @@ -247,7 +268,7 @@ app.use('/', function (req, res) { sslOptions = { //SNICallback is passed the domain name, see NodeJS docs on TLS SNICallback: function (domain) { - console.log(domain); + console.log('SNI:', domain); return secureContexts[domain]; } // fallback / default domain