Https don't works with nginx on debian 8

Hello every body,
first sorry for my poor english.
Second i’m newby with nginx
I wrote you to give some help about https and nginx.

I have a site web works fine in http, but when i try to acces to this
website throw https, my browser try to download a file and never open
web site.

You can try to see the result on: ===> OK ===> KO

here is my sites-enabel conf:

[code]server {
listen 80;
root /var/www/rainloop;
index index.php;
charset utf-8;

location ^~ /data {
deny all;

location / {
try_files $uri $uri/ index.php;

location ~* .php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME

server {
listen 443 ssl;
root /var/www/rainloop;
index index.php;
charset utf-8;

ssl on;
ssl_certificate /etc/ssl/nginx/;
ssl_certificate_key /etc/ssl/nginx/accary.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;
ssl_ecdh_curve secp384r1;

ssl_session_cache   shared:SSL:10m;
ssl_session_timeout 10m;

ssl_stapling        on;
ssl_stapling_verify on;

resolver valid=300s;
resolver_timeout 10s;

add_header X-Frame-Options “DENY”;
add_header X-Content-Type-Options “nosniff”;

Posted at Nginx Forum:,264095,264095#msg-264095


you´re missing the PHP block in the SSL Server block. Just copy all your
location directives into the other server and you´ll be fine.

Mit Freundlichen Grüßen
Sven Kirschbaum

2016-01-25 11:33 GMT+01:00 mrglobule [email protected]:

Thanks a lot,
all it’s working now.

Posted at Nginx Forum:,264095,264097#msg-264097