how to set PHP-FPM (> 7) to bind outgoing connection to specific socket/ip ?
i know there is pool directive
listen = 127.0.0.1:port
but its for incoming connections but what with outgoing ?
how to set PHP-FPM (> 7) to bind outgoing connection to specific socket/ip ?
i know there is pool directive
listen = 127.0.0.1:port
but its for incoming connections but what with outgoing ?
You could also do this at the cURL level by binding a cURL instance to an interface:
curl_setopt($ch, CURLOPT_INTERFACE, 'x.x.x.x');