Submitted by hlvtrinh on Fri, 06/24/2016 - 11:40
I've tried with my sub-domain do1.hlvtrinh.com then got the error: ValueError: Wrote file to /home/hlv_trinh/domains/do1.hlvtrinh.com/public_html/.well-known/acme-challenge/Jyrdj-pcLV42jSOA5q-_TCRCAl_SX-9Z6YjI_Q6_LcM, but couldn't download http://do1.hlvtrinh.com/.well-known/acme-challenge/Jyrdj-pcLV42jSOA5q-_T...
I tried comment out line "os.remove(wellknown_path)" in acme_tiny.py and observed that the file was written successfully. Trying to create new sub-domain, the error came with subdomains that has number in it. Please help check on your side.
Status:
Active
Comments
Submitted by JamieCameron on Fri, 06/24/2016 - 19:39 Comment #1
The most common cause of this error is a proxy or NAT gateway between your Virtualmin system and the internet. Check that you can download that file from your Virtualmin machine, rather than from another PC.
Submitted by hlvtrinh on Sat, 06/25/2016 - 00:01 Comment #2
Hi Jamie,
Thanks for your comment. I've double check, the subdomain do1.hlvtrinh.com is the same to server hostname, so, on server side, the domain was solved to 127.0.0.1 which apache server didn't listen to. That's why the request returned 404 error.
Solved it myself by changing httpd.conf to let virtualhost of this domain listen to any IP (*:80). Thanks
Submitted by JamieCameron on Sat, 06/25/2016 - 00:02 Comment #3
You need to try accessing it from your server though, with a command like :
wget http://do1.hlvtrinh.com/.well-known/acme-challenge/Jyrdj-pcLV42jSOA5q-_TCRCAl_SX-9Z6YjI_Q6_LcM