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

**URL:** <https://community.letsencrypt.org/t/what-webroot-to-choose-when-deploying-certbot-on-ubuntu-14-04-5-with-nginx-and-discourse-installed/25817>\
**Category:** Server\
**Created:** [January 16, 2017, 3:11pm UTC](https://community.letsencrypt.org/t/what-webroot-to-choose-when-deploying-certbot-on-ubuntu-14-04-5-with-nginx-and-discourse-installed/25817 "2017-01-16T15:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snakeninny](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/snakeninny/32/10609_2.png) [@snakeninny](https://community.letsencrypt.org/u/snakeninny)\
**Post date:** [January 16, 2017, 3:11pm UTC](https://community.letsencrypt.org/t/what-webroot-to-choose-when-deploying-certbot-on-ubuntu-14-04-5-with-nginx-and-discourse-installed/25817/1 "2017-01-16T15:11:40Z")

</div>

```auto
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

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [January 16, 2017, 5:42pm UTC](https://community.letsencrypt.org/t/what-webroot-to-choose-when-deploying-certbot-on-ubuntu-14-04-5-with-nginx-and-discourse-installed/25817/2 "2017-01-16T17:42:15Z")

</div>

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…)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [February 15, 2017, 5:44pm UTC](https://community.letsencrypt.org/t/what-webroot-to-choose-when-deploying-certbot-on-ubuntu-14-04-5-with-nginx-and-discourse-installed/25817/3 "2017-02-15T17:44:15Z")

</div>

Closed on February 15, 2017, 5:44pm UTC

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