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
the
web site.

You can try to see the result on:
http://wa.accary.net ===> OK
https://wa.accary.net ===> KO

here is my sites-enabel conf:

[code]server {
listen 80;
server_name wa.accary.net;
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
$document_root$fastcgi_script_name;
}
}

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

ssl on;
ssl_certificate /etc/ssl/nginx/accary.net.crt-unified;
ssl_certificate_key /etc/ssl/nginx/accary.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "EECDH+AESGCM:AES128+EECDH:AES256+EECDH";

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 8.8.4.4 8.8.8.8 valid=300s;
resolver_timeout 10s;

add_header X-Frame-Options “DENY”;
add_header X-Content-Type-Options “nosniff”;
}
[/code]

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,264095,264095#msg-264095

Hello,

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:
https://forum.nginx.org/read.php?2,264095,264097#msg-264097

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs