server {
  listen      80;
  server_name <%= @server_name %>;
  root        <%= @blog_root %>/_site;
  autoindex   off;

  location ~ ^/(google.+\.html|robots\.txt) {  }

  location / {
    auth_basic 'Restricted';
    auth_basic_user_file /opt/nginx/.htpasswd;
  }
}

server {
  listen      80;
  listen      443 ssl;

  server_name <%= @server_name %>;
  root        <%= @blog_root %>/_site;
  autoindex   off;

  location ~ ^/(google.+\.html|robots\.txt) {  }

  location / {
    auth_basic 'Restricted';
    auth_basic_user_file /opt/nginx/.htpasswd;
  }
}

Enable SSL for draft blog.
Enable SSL for draft blog.
