Background
I have a PHP-FPM sitting behind an Apache server. As I need to use two different configurations for PHP-FPM, I can configure it to be connected either on:
- 127.0.0.1:9000 and 127.0.0.2:9000, or;
- 127.0.0.1:9000 and 127.0.0.1:9001
Question
I think the above scenario could be applied generally and not just on PHP-FPM setup. So, my question is, is there any difference between a two ips on one port vs one ip on two ports setup? When would you use one over the other?