<commit_before># Choose between www and non-www, listen on the *wrong* one and redirect to
# the right one -- http://wiki.nginx.org/Pitfalls#Server_Name
#
server {
  listen 80;

  # listen on both hosts
  server_name example.com www.example.com;

  include h5bp/direcive-only/ssl.conf

  # and redirect to the https host (declared below)
  # avoiding http://www -> https://www -> https:// chain.
  return 301 https://example.com$request_uri;
}

server {
  listen 443 ssl spdy;

  # listen on the wrong host
  server_name www.example.com;

  include h5bp/direcive-only/ssl.conf

  # and redirect to the non-www host (declared below)
  return 301 https://example.com$request_uri;
}

server {
  listen 443 ssl spdy;

  # The host name to respond to
  server_name example.com;

  include h5bp/direcive-only/ssl.conf<commit_msg>Add missing semicolons in `ssl.example.com`<commit_after># Choose between www and non-www, listen on the *wrong* one and redirect to
# the right one -- http://wiki.nginx.org/Pitfalls#Server_Name
#
server {
  listen 80;

  # listen on both hosts
  server_name example.com www.example.com;

  include h5bp/direcive-only/ssl.conf;

  # and redirect to the https host (declared below)
  # avoiding http://www -> https://www -> https:// chain.
  return 301 https://example.com$request_uri;
}

server {
  listen 443 ssl spdy;

  # listen on the wrong host
  server_name www.example.com;

  include h5bp/direcive-only/ssl.conf;

  # and redirect to the non-www host (declared below)
  return 301 https://example.com$request_uri;
}

server {
  listen 443 ssl spdy;

  # The host name to respond to
  server_name example.com;

  include h5bp/direcive-only/ssl.conf;
{'fraction_non_alphanumeric': 0.10541989279332936, 'fraction_numerical': 0.02025014889815366, 'mean_word_length': 3.409448818897638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 14, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2739771', 'n_tokens_mistral': 600, 'n_tokens_neox': 559, 'n_words': 175}