Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank screen with Nginx on FreeBSD #9965

Closed
ghost opened this issue Mar 26, 2016 · 1 comment
Closed

Blank screen with Nginx on FreeBSD #9965

ghost opened this issue Mar 26, 2016 · 1 comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@ghost
Copy link

ghost commented Mar 26, 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.

@ghost
Copy link
Author

ghost commented Mar 27, 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,

@ghost ghost closed this as completed Mar 27, 2016
@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Apr 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

1 participant