Running nodejs and apache on same server with 256 ip addresses

I have a server with 256 different IP addresses to run apache (for php) and few separate nodejs instances.

I'm planning on allocating 246 IPs for php and 10 IPs for node. How would one set this up? I'm assuming I would have to do all the config within Apache, as well as have the nodejs instances running on different ports (other then port 80) and map the respective IPs to the right instance.

Can someone explain how I could achieve this?