server { listen 8000; server_name ; return 301 https://$host$request_uri; } server { listen 4430 ssl spdy http2; server_name ; ssl_certificate ; ssl_certificate_key ; include /etc/nginx/conf/ssl_params; include /etc/nginx/conf/headers_params; #client_max_body_size M; #auth_basic "Who's this?"; #auth_basic_user_file /passwds/.htpasswd; location { proxy_pass http://:; include /etc/nginx/conf/proxy_params; } }