When creating a new Lets encrypt certificate the following is passed:
--webroot-path /home/domain/public_html
However, if the word readable folder for the website is changed, for example:
Directory /home/domain/public_html/web
Lets Encrypt cannot find the tmp file, due to the incorrect --webroot-path being passed.
Status:
Active
Comments
Submitted by JamieCameron on Mon, 04/25/2016 - 21:28 Comment #1
How did you change the domain's HTML directory? Was it done via the Virtualmin UI (in which case the correct path should be used), or by directly editing the Apache config (in which case all bets are off)?
Likely editing the Apache config.
Whats the best way to work around this? Edit through the Virtualmin UI?
Edit
Well, when I say through editing the httpd.conf - I would have used the Virtualmin UI. but used the 'Edit Directives' functionality.
Submitted by andreychek on Tue, 04/26/2016 - 09:42 Comment #3
You may want to try doing that by going into Server Configuration -> Website Options, and there set the "Website documents sub-directory" option.
Aha. I have never changed that setting in this manner.
This has now worked successfully.
Thanks,
Paul