Here, we have identified the key infection-responsive enhancers of the upd3 gene and show that distinct enhancers respond to various stresses.