Add events and http module to the nginx conf file