@mathias-b opened this Issue on March 26th 2016

Hello,

I have an huge issue with piwik since we decided to migrate our infra from Debian to FreeBSD. I installed piwik any times and I know very well the installation process, I make a fresh installation for testing but the problem persists : my webpage is blank.

There's nothing in my logs except access traces:

81.64.129.130 - - [26/Mar/2016:17:36:32 +0100] "GET / HTTP/2.0" 200 154 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0"

There is my configuration files

Nginx:

load_module modules/ngx_stream_module.so;
load_module modules/ngx_http_image_filter_module.so;
load_module modules/ngx_http_geoip_module.so;

#user  nobody;
worker_processes  4;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

events {
    worker_connections  2048;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    include /usr/local/etc/nginx/sites-enabled/*;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    gzip  on;
}

Nginx vhost concerned:

server {
  listen 80;
  server_name stats.unixcorn.org;
  # enforce https
  return 301 https://$server_name$request_uri;
}

server {
  listen 443 ssl http2;
  server_name stats.unixcorn.org;

  # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
  ssl_certificate /usr/local/etc/letsencrypt/live/unixcorn.org/fullchain.pem;
  ssl_certificate_key /usr/local/etc/letsencrypt/live/unixcorn.org/privkey.pem;
  ssl_session_timeout 1d;
  ssl_session_cache shared:SSL:50m;
  ssl_session_tickets off;

  # modern configuration. tweak to your needs.
  ssl_protocols TLSv1.1 TLSv1.2;
  ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK';
  ssl_prefer_server_ciphers on;

  # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits
  ssl_dhparam /usr/local/etc/ssl/dhparams.pem;

  # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
  add_header Strict-Transport-Security max-age=15768000;

        root /var/www/htdocs/stats.unixcorn.org/piwik/;
        index index.php index.html index.htm;

        location / {
                    try_files $uri $uri/ /index.html;
        }

        location ~ \.php$ {
                        include fastcgi_params;
                        fastcgi_index index.php;
                        fastcgi_pass 127.0.0.1:9000;
                        fastcgi_param PHP_VALUE "max_execution_time=1800
                                                 post_max_size=1500M
                                                 upload_max_filesize=32M
                                                 max_input_time=1800
                                                 max_file_uploads=300";
                       }

}

Hope somebody can help, I can provide any configuration files for debugging.
Thanks in advance.

@mathias-b commented on March 27th 2016

Hello,

I found the problem, I don't know really why but it like an incompatibility between index index.php & fastcgi_index index.php;. I just deleted the last line and now it works !
Sorry for the noise.

Cheers,

This Issue was closed on March 27th 2016
Powered by GitHub Issue Mirror