
server {
       listen 80;
       server_name hellonginx;
       access_log /var/log/nginx/hellonginx.access.log combined;
       error_log /var/log/nginx/hellonginx.error.log; 
     

       location / {
          include uwsgi_params;
          uwsgi_param HTTPS off;
          uwsgi_pass unix:///var/run/uwsgi/app/hellonginx/socket;
          uwsgi_ignore_headers   Set-Cookie;
       }
}

server {
       listen 443;
       server_name hellonginx;
       access_log /var/log/nginx/hellonginx.access.log combined;
       error_log /var/log/nginx/hellonginx.error.log; 


       ssl on;
       #ssl_certificate /etc/ssl/certs/hellonginx.pem;
       #ssl_certificate_key /etc/ssl/private/hellonginx.key;
       ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
       ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;

       ssl_session_timeout 5m;
       ssl_protocols SSLv3 TLSv1;
       ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
       ssl_prefer_server_ciphers on;

       location / {
          include uwsgi_params;
          uwsgi_param HTTPS on;
          uwsgi_pass unix:///var/run/uwsgi/app/hellonginx/socket;
          uwsgi_ignore_headers   Set-Cookie;
       }

}

