16.04 - urn:acme:error:unauthorized :: The client lacks sufficient authorization error. Let's Encrypt + Nginx + Phusion Passenger - Ask Ubuntu


i have meteorjs app running on digital ocean server (using nginx). have followed this tutorial install let's encrypt certificate on domain, failed on command:

sudo letsencrypt certonly -a webroot --webroot-path=/var/www/html -d luludeals.com -d www.luludeals.com

i error:

failed authorization procedure. www.luludeals.com (http-01): urn:acme:error:unauthorized :: client lacks suffic ient authorization :: invalid response http://www.luludeals.com/.well-known/acme-challenge/afx6b3zoxam1ar0zxyw koubvlesqzraa3ut551_u3ms: "<!doctype html> <html> <head>   <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/462460ddb68331f2c370d7afc3d", luludeals.com (http-01): urn:acme:error:unauthorized :: client lacks sufficient authorization :: invalid response http:/ /luludeals.com/.well-known/acme-challenge/qfloxvn5szazgzvwi-usltqx4bxl7vxqpymv5i72kp0: "<!doctype html> <html> <head>   <link rel="stylesheet" type="text/css" class="__meteor-css__" href="/462460ddb68331f2c370d7afc3d"  important notes:  - following errors reported server:     domain: www.luludeals.com    type:   unauthorized    detail: invalid response http://www.luludeals.com/.well-known    /acme-challenge/afx6b3zoxam1ar0zxywkoubvlesqzraa3ut551_u3ms:    "<!doctype html>    <html>    <head>      <link rel="stylesheet" type="text/css" class="__meteor-css__"    href="/462460ddb68331f2c370d7afc3d"     domain: luludeals.com    type:   unauthorized    detail: invalid response http://luludeals.com/.well-known    /acme-challenge/qfloxvn5szazgzvwi-usltqx4bxl7vxqpymv5i72kp0:    "<!doctype html>    <html>    <head>      <link rel="stylesheet" type="text/css" class="__meteor-css__"    href="/462460ddb68331f2c370d7afc3d" 

my /etc/nginx/sites-available/default file looks that:

# default server configuration # server {         listen 80 default_server;         listen [::]:80 default_server;          # ssl configuration         #         # listen 443 ssl default_server;         # listen [::]:443 ssl default_server;         #         # note: should disable gzip ssl traffic.         # see: https://bugs.debian.org/773332         #         # read on ssl_ciphers ensure secure configuration.         # see: https://bugs.debian.org/765782         #         # self signed certs generated ssl-cert package         # don't use them in production server!         #         # include snippets/snakeoil.conf;          root /var/www/luludeals;          # add index.php list if using php         index index.html index.htm index.nginx-debian.html;          server_name _;          location / {                 # first attempt serve request file,                 # directory, fall displaying 404.                 try_files $uri $uri/ =404;         }          location ~ /.well-known {         allow all;         }           # pass php scripts fastcgi server listening on 127.0.0.1:9000             #         # location ~ \.php$ {         # include snippets/fastcgi-php.conf;         #         # php7.0-cgi alone:         # fastcgi_pass 127.0.0.1:9000;         # php7.0-fpm:         # fastcgi_pass unix:/run/php7.0-fpm.sock;         # }          # deny access .htaccess files, if apache's document root         # concurs nginx's 1         #         # location ~ /\.ht {         # deny all;         #}    } 

do know how solve problem? install meteorjs used this tutorial

my app serves @ /var/www/luludeals/bundle if helps


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User