Welcome! Log In Create A New Profile

Advanced

[FR] https don't works with nginx on debian 8

January 25, 2016 05:33AM
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]
Subject Author Posted

[FR] https don't works with nginx on debian 8

mrglobule January 25, 2016 05:33AM

Re: [FR] https don't works with nginx on debian 8

Sven Kirschbaum January 25, 2016 05:46AM

Re: [FR] https don't works with nginx on debian 8

mrglobule January 25, 2016 05:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready