Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

What redirect do I need for letsencrypt challenge?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
minihoneybee
Posts: 5
Joined: Tue Mar 07, 2017 11:27 am

What redirect do I need for letsencrypt challenge?
  • Quote

Post by minihoneybee » Mon Mar 13, 2017 12:00 pm

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:
Image

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: What redirect do I need for letsencrypt challenge?
  • Quote

Post by SS88 » Mon Mar 13, 2017 2:08 pm

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
Top

minihoneybee
Posts: 5
Joined: Tue Mar 07, 2017 11:27 am

Re: What redirect do I need for letsencrypt challenge?
  • Quote

Post by minihoneybee » Wed Mar 15, 2017 7:52 am

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
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: What redirect do I need for letsencrypt challenge?
  • Quote

Post by SS88 » Wed Mar 15, 2017 11:14 am

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
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password