We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
What redirect do I need for letsencrypt challenge?
-
- Posts: 5
- Joined: Tue Mar 07, 2017 11:27 am
What redirect do I need for letsencrypt challenge?
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:
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.
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>
Re: What redirect do I need for letsencrypt challenge?
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.
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
-
- Posts: 5
- Joined: Tue Mar 07, 2017 11:27 am
Re: What redirect do I need for letsencrypt challenge?
Thanks for your reply, but it doesn't work like that, what package do I need?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
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?
Try:minihoneybee wrote:Thanks for your reply, but it doesn't work like that, what package do I need?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
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
Code: Select all
/usr/local/vesta/bin/v-add-letsencrypt-domain username website.com www.website.com