Mar 052014
 

I just could not make it work although it seems pretty easy and straightforward.

I have a machine with 4 IPs (216.x.x.203~206), and start Apache listening on 1203~1206 for each IP, then for each VirtualHost (such as 216.x.x.203:1203) I turn on ProxyRequests, and set ProxySourceAddress to that IP address, thus client connecting to 203 will have their request go out through 203 as well.

It just didn’t work, I’m having this kind of messages in error_log:

(98)Address already in use: [client 192.168.0.11:48822] AH00938: CONNECT: failed to bind socket to local address

Tried various configuration changes but didn’t make any difference. Since I was in a hurry to get my job done, so I switch to squid – everything was up and running as expected in ~15 min. Thinking of I never play with squid before, I have to say, squid is pretty user (read: admin) friendly.

I’ve downloaded code from for httpd-2.4.7, and will dig in to see if it was because of my potential stupid mistakes, let’s see how things work.

Sorry, the comment form is closed at this time.