Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

letsencrypt error

nginx server block is configured for subdomain 
server {
    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

here our applcation deny access to /.well-know/acme-challenge route. That's why letsencrypt also cannot get access to this route for granting cert to subdomain

solution:
sudo echo hi > /var/www/letsencrypt/.well-known/acme-challenge/hi
then add to subdomain nginx server block

location ^~ /.well-known/acme-challenge/ {
  default_type "text/plain";
  rewrite /.well-known/acme-challenge/(.*) /$1 break;
  root /var/www/letsencrypt;
}
Comment

PREVIOUS NEXT
Code Example
Shell :: linux copy directory 
Shell :: remove .idea from git 
Shell :: how to push your code to github 
Shell :: ssh raspberry pi ngrok 
Shell :: sh: webpack-dev-server: command not found 
Shell :: drupal update config install 
Shell :: ghost in the shell full movie 
Shell :: where does the export path file in linux 
Shell :: open rdp port windows 10 using command line 
Shell :: yum install redis cli 
Shell :: git subtree 
Shell :: force push to remote branch 
Shell :: mac terminal curl trim response 
Shell :: git submodule update --init --recursive 
Shell :: common use of python sys library 
Shell :: git not recognized 
Shell :: add user with sudoer centos 
Shell :: github to gitlab 
Shell :: how to access folder using command on git bash terminal 
Shell :: std error bash 
Shell :: xrandr 1704x1000 
Shell :: mac noide folder 
Shell :: overleaf git no password 
Shell :: bash temp file extension 
Shell :: open first image in directory linux 
Shell :: bash: ng: command not found yarn 
Shell :: linuxbrew on arch 
Shell :: install gearman di linux 
Shell :: cat file content after pattern 
Shell :: fedora secure boot 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =