Install dehydrated-apache2 by entering the following commands in the terminal:
sudo apt update sudo apt install dehydrated-apache2
dehydrated challenge response support for Apache2
This package provides an Apache2 config snippet to serve the http-01 challenge responses for dehydrated. . Installing this package together with dehydrated is enough to have a fully functional ACME client, including replying to the HTTP challenge.