roots/trellis#565 enables Trellis to transition existing http
sites to https
. This update may resolve some issues that led to the error message Could not access the challenge file
Existing servers. If you try the Trellis update above on a server that has already been provisioned with the prior version of Trellis (i.e., on a server that already has an Nginx conf set up), you should first run:
ansible-playbook server.yml -e env=<environment> --tags wordpress
That sets up an Nginx conf that will help with the next step of running the letsencrypt
role:
ansible-playbook server.yml -e env=<environment> --tags letsencrypt
New servers. Just to be clear, for fresh/new servers, you can just run the regular command once:
ansible-playbook server.yml -e env=<environment>