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

mrglobule nginx-forum at forum.nginx.org
Mon Jan 25 10:33:01 UTC 2016

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

   add_header X-Frame-Options "DENY";
   add_header X-Content-Type-Options "nosniff";

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

More information about the nginx mailing list