I was wondering if anyone could help.
I've got a linux server with virtual hosts set up with separate ips and domain names.
Everything works fine for incoming requests, but when I send an outgoing call (using curl php but am willing to change if necessary) the ip address received by the target is the server's primary ip address.
I need it to show that it's from the ip address that has been set to the virtual host where the php page is located.
Any help would be appreciated.