I have need of a web-server which can bind to a particular device, both by binding to the local IP address and also using the setsockopt(... SO_BINDTODEVICE) call.
Would there be any chance that such a patch would be accepted into the main tree?
sure there's a chance ;) if a patch isn't hard to create and you need such a server anyway, post the patch and let us see what this involves; please note that new features like this should be in 2.1-dev... you didn't mention which level of Apache you were interested in enhancing