Created an http handler for the distributor.