Habe meine paar Websites auf einen neuen Server mit NGinx migriert.
Läuft auch ganz gut.
Linux r3cwzg4q 2.6.32-042stab104.1 #1 SMP Thu Jan 29 12:58:41 MSK 2015 x86_64 GNU/Linux
PHP 5.6.14-0+deb8u1
nginx/1.6.2
mysql Ver 14.14 Distrib 5.5.46, for debian-linux-gnu (x86_64) using readline 6.3
Jetzt zum Abschluss wollte ich noch Piwik migrieren, aber das will nicht so.
Ich kann unter statistik.domain.com das Piwik aufrufen und sehe auch alle Daten aus den letzten Jahren.
Allerdings scheint es als Aufruf von anderen Websites aus nicht zu funktionieren.
Bekomme da eine eine Art Timeout. Die Website scheint auch nach 5 min noch zu laden und wartet auf statistik.domain.com.
less /var/log/php5-fpm.log
Code: Alles auswählen
[31-Oct-2015 08:12:58] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[31-Oct-2015 08:12:58] NOTICE: fpm is running, pid 2258
[31-Oct-2015 08:12:58] NOTICE: ready to handle connections
[31-Oct-2015 08:12:58] NOTICE: systemd monitor interval set to 10000ms
leer
/var/log/nginx/statistik.domain.com_access.log
Code: Alles auswählen
[31/Oct/2015:08:26:06 +0000] "GET /piwik.js HTTP/1.1" 200 51454
Wenn ich F5 drücke oder eine neue Seite aufrufe, sehe ich nicht immer eine neue Log Zeile.
nginx vhost:
Code: Alles auswählen
server {
listen 80; # IPv4
server_name statistik.domain.com;
access_log /var/log/nginx/statistik.domain.com_access.log;
error_log /var/log/nginx/statistik.domain.com_error.log;
root /var/www/domain.com/statistik.domain.com/;
index index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_read_timeout 300;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Evtl. liegt es an der Nginx Konfiguration?