You are not logged in.
Hi everyone,
I'm trying to install piwik on my nginx. But I have a weird problem. When I try to access to the page, I don't have any result but a blank page...
I checked in the logs :
php-fpm nothing,
nginx nothing either.
So here's my nginx.conf :
user root;
worker_processes 1;
events {
worker_connections 1024;
}
http {
##
# Basic Settings
##
sendfile on;
# tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
# types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
server {
listen 80;
server_name stats.juanwolf.fr;
access_log /var/log/nginx/stats.access.log;
error_log /var/log/nginx/stats.error.log;
root /usr/share/webapps/piwik;
# Static
location / {
index index.php;
}
location /config.ini.php {
root /etc/webapps/nginx;
index config.ini.php;
}
location ~ \.php$ {
root /usr/share/webapps/piwik/;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
}
Thanks a lot for your help !
Last edited by juanwolf (2015-03-22 19:08:26)
Offline
Just found the solution. I changed the configuration for virtual host like that :
server {
listen 80;
server_name stats.juanwolf.fr;
access_log /var/log/nginx/stats.access.log;
error_log /var/log/nginx/stats.error.log;
root /usr/share/webapps/piwik;
# Static
location / {
index index.php;
}
location /config.ini.php {
root /etc/webapps/nginx;
index config.ini.php;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_hide_header X-Powered-By;
}
}
Offline