Page 1 of 1
What redirect do I need for letsencrypt challenge?
Posted: Mon Mar 13, 2017 12:00 pm
by minihoneybee
I'm trying to get Letsencrypt to work. The problem is that I don't serve files from my webroot directly.
So when I try to automatically add letsencrypt I get this error:
I have an apache redirect alias like so:
Code: Select all
Alias /.well-known/acme-challenge /home/admin/web/<WEBROOT>/public_shtml
<IfModule mod_headers.c>
<LocationMatch "/.well-known/acme-challenge/*">
Header set Content-Type "application/jose+json"
</LocationMatch>
</IfModule>
I can serve other files from there to the browser so I know it works, but
I'm wondering if it's the correct location where VestaCP puts the challenge files.
Re: What redirect do I need for letsencrypt challenge?
Posted: Mon Mar 13, 2017 2:08 pm
by SS88
I'm not sure if this is a known bug, but I get the same error even when I serve files from the web root.
My workaround instead is to use the commmand line to enable LE SSL support.
Code: Select all
v-add-letsencrypt-domain username website.com www.website.com
Re: What redirect do I need for letsencrypt challenge?
Posted: Wed Mar 15, 2017 7:52 am
by minihoneybee
SS88 wrote:I'm not sure if this is a known bug, but I get the same error even when I serve files from the web root.
My workaround instead is to use the commmand line to enable LE SSL support.
Code: Select all
v-add-letsencrypt-domain username website.com www.website.com
Thanks for your reply, but it doesn't work like that, what package do I need?
Code: Select all
Last login: Wed Mar 15 07:38:01 2017 from 193.191.179.244
admin@server:~$ v-add-letsencrypt-domain username mydomain.com
v-add-letsencrypt-domain: command not found
Re: What redirect do I need for letsencrypt challenge?
Posted: Wed Mar 15, 2017 11:14 am
by SS88
minihoneybee wrote:SS88 wrote:I'm not sure if this is a known bug, but I get the same error even when I serve files from the web root.
My workaround instead is to use the commmand line to enable LE SSL support.
Code: Select all
v-add-letsencrypt-domain username website.com www.website.com
Thanks for your reply, but it doesn't work like that, what package do I need?
Code: Select all
Last login: Wed Mar 15 07:38:01 2017 from 193.191.179.244
admin@server:~$ v-add-letsencrypt-domain username mydomain.com
v-add-letsencrypt-domain: command not found
Try:
Code: Select all
/usr/local/vesta/bin/v-add-letsencrypt-domain username website.com www.website.com