What webroot to choose when deploying certbot on Ubuntu 14.04.5, with Nginx and Discourse installed?

root@iosre:/var# ./certbot-auto certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Failed to find apache2ctl in PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

How would you like to authenticate with the ACME CA?
-------------------------------------------------------------------------------
1: Place files in webroot directory (webroot)
2: Spin up a temporary webserver (standalone)
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Please enter in your domain name(s) (comma and/or space separated)  (Enter 'c'
to cancel):iosre.com
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for iosre.com

Select the webroot for iosre.com:
-------------------------------------------------------------------------------
1: Enter a new webroot
-------------------------------------------------------------------------------
Press 1 [enter] to confirm the selection (press 'c' to cancel): 1
Input the webroot for iosre.com: (Enter 'c' to cancel):www
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. iosre.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://iosre.com/.well-known/acme-challenge/XEW4lPlZXcex19zjJAqLUui7uYisNcBB3MiR-gvuL4c: "<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>iOSRE</title>
  <meta name="description" content="">
 "

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: iosre.com
   Type:   unauthorized
   Detail: Invalid response from
   http://iosre.com/.well-known/acme-challenge/XEW4lPlZXcex19zjJAqLUui7uYisNcBB3MiR-gvuL4c:
   "<!DOCTYPE html>
   <html lang="en">
   <head>
     <meta charset="utf-8">
     <title>iOSRE</title>
     <meta name="description" content="">
    "

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A record(s) for that domain
   contain(s) the right IP address.
root@iosre:/var# 

FYI. What did I do wrong?

If you need any more info, please let me know. Thank you!

Yinglu

The webroot is the actual path on your webserver where the content of your website resides. E.g., /var/www/example.com/htdocs/ (or equivalent on your server…)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.