Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

letsencrypt domain fetch /.well-known 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 :: How to commit the code to the github 
Shell :: run cron job as specific user 
Shell :: how to scroll up in linux terminal 
Shell :: how to execute script and pass a parameterin linux 
Shell :: powershell command line variables 
Shell :: git fork 
Shell :: git 3 way merge 
Shell :: git interactive rebase 
Shell :: create github repository from git bash 
Shell :: windows powershell create new file 
Shell :: how to create a new group in linux 
Shell :: revert the revert 
Shell :: Install All Nerd Fonts 
Shell :: flutter ui upload multiple image 
Shell :: crear usuario linux comandos 
Shell :: how to remove package files in linux 
Shell :: github cli download 
Shell :: how to install node_module 
Shell :: flutter doctor --android-licenses error 
Shell :: bash change keymap 
Shell :: .bash_profile mac mvn 
Shell :: hsp hFP ubuntu "solved" 
Shell :: ve-restore-user database only 
Shell :: count symlink dir bash 
Shell :: linux shell filter binary files 
Shell :: calenderfx installation 
Shell :: dont want ot type my passphrase everytime i push 
Shell :: drush available source plugins 
Shell :: if data is not available column header should print in output file in powershell 
Shell :: visual studio code hide git marker 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =