2011/6/12 Bambero <bamb...@gmail.com>: > Hello > > I have many IP and IP based virtualhost configured. > Everything works fine. But when making request (for ex. fsockopen) > with php the outgoing IP is 123.456.789.66. > Does anybody know how to tell php to bind to virualhost IP when making > request ?
There's a memory-wasting way by creating separate rdomain per each IP, and running multiple web servers in each of those. Does copy-on-write actually save us anything? Sorry for my misunderstanding of your memory management. Otherwise it seems more like a PHP issue. Using bind() as suggested by halex@ can become a problem if each of these hosts hosts some huge application which is hard to modify. -- Martin Pelikan