Welcome! Log In Create A New Profile

Advanced

RE: Puzzling Log messages talking to php-fpm

Reinis Rozitis
December 01, 2020 05:46PM
> We have a server (real name substituted by mapserver.example.com) running nginx 1.18.0 on CentOS 7 with php-fpm listening on port 9001.

Does the fpm listen also on ipv6 interface?
Check: ss -ntlr | grep 9001
If you see [::]:9001

Since you have fastcgi_pass localhost:9001; I assume at some points the localhost resolves to an ipv6


> one with an IPv6 client and one with an IPv4 client):

All your logs show ipv6 clients only - 2a02:587:da23:700:[last_4_parts_removed], and ::ffff:193.140.[last_2_octets_removed] are both ipv6 ips (the second is so called ipv4-mapped ipv6 address)


Either make fpm listen to all interfaces or change the nginx config to: fastcgi_pass 127.0.0.1:9001;

Or even better is to use unix sockets so you can avoid the tcp stack between nginx and php-fpm at all.


rr


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Puzzling Log messages talking to php-fpm

Nikolaos Milas December 01, 2020 04:22PM

RE: Puzzling Log messages talking to php-fpm

Reinis Rozitis December 01, 2020 05:46PM

Re: Puzzling Log messages talking to php-fpm

Nikolaos Milas December 03, 2020 01:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready