Hi,
I have a problem with Piwik Mobile for Android.
I can’t connect to my piwik install (nginx server with php-fpm) but it works with demo.piwik.org.
I’ve enabled anonymous access if you want to test.
The problem is with my install.
Piwik Mobile :
Platform : android 2.3.7 U20i
Version : 1.6.1 - 1.8.0 03b8453
Available memory : 3191720
Resolution : 240x320 low (120)
Locale : fr-FR
Network : WIFI
Server :
Platform : Debian GNU/Linux Squeeze & Debian GNU/Linux SID (apt-pinning for nginx & php5-fpm)
Version : 1.6
URL : http://piwik.colundrum.eu
Nginx data webhost :
server {
listen 80;
root /var/www/piwik;
index index.php index.html index.htm;
server_name piwik.colundrum.eu;
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 444;
}
location ~* ^.+\.(?:jpg|png|css|gif|jpeg|js|swf)$ {
expires max;
}
location ~* ^.+\.(?:jpg|png|css|gif|jpeg|js|swf)$ {
expires max;
break;
tcp_nodelay off;
}
location = /favicon.ico {
try_files /favicon.ico =204;
}
location / {
try_files $uri /index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~* ^/(?:index|piwik)\.php$ {
fastcgi_pass unix:/var/run/php5-fpm.socket;
include fastcgi_params;
}
location ~* ^.+\.php$ {
return 404;
}
location ~* ^/(?:README|LICENSE[^.]*|LEGALNOTICE)(?:\.txt)*$ {
return 404;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
Fastcgi_params :
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
Good day.