From 87e4f9df64eccca0dccc8c27252b03d5591c148b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 30 Jul 2012 17:14:32 -0300 Subject: Adding SNI Configuration to nginx --- templates/etc/nginx/domain.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/etc/nginx/domain.erb b/templates/etc/nginx/domain.erb index 3cddd5b..4e9fa7d 100644 --- a/templates/etc/nginx/domain.erb +++ b/templates/etc/nginx/domain.erb @@ -3,6 +3,16 @@ # Set the max size for file uploads client_max_body_size 100M; +# SNI Configuration +server { + listen 443 default; + server_name _; + ssl on; + ssl_certificate /etc/ssl/certs/blank.crt; + ssl_certificate_key /etc/ssl/private/blank.pem; + return 403; +} + server { # see config tips at # http://blog.taragana.com/index.php/archive/nginx-hacking-tips/ -- cgit v1.2.3