Lets Encrypt - tmp file stored in public_html/

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

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)?

pixel_paul's picture
Submitted by pixel_paul on Tue, 04/26/2016 - 03:40 Pro Licensee

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.

You may want to try doing that by going into Server Configuration -> Website Options, and there set the "Website documents sub-directory" option.

pixel_paul's picture
Submitted by pixel_paul on Wed, 04/27/2016 - 03:15 Pro Licensee

Aha. I have never changed that setting in this manner.

This has now worked successfully.

Thanks,

Paul