I was looking into a freebsd webserver config awhile ago. this is what I found that was going to do it.
http://siag.nu/pen/ and if I remember correctly, it would handle the php sessions correctly too, by sending the surfer to the same box every request. And you'd just connect to one mysql box in the back-end.