Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

letsencrypt domain 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 :: git add an entire folder to commit 
Shell :: npm install from git 
Shell :: rmdir linux 
Shell :: nextjs cli 
Shell :: install raspberry pi 
Shell :: background ubuntu 
Shell :: list all local branches off a branhc 
Shell :: dos dir 
Shell :: dracula theme gnome terminal 
Shell :: upload on s3 
Shell :: ssh bad owner permissions 
Shell :: linux find and rename files with text 
Shell :: dir files 
Shell :: print file size in mb linux 
Shell :: git cherrypick 
Shell :: scp command from local to remote 
Shell :: bash if else if 
Shell :: crontab mac 
Shell :: gitlab push 
Shell :: ssh to lightsail 
Shell :: shell get all lines that are in one file and not another 
Shell :: Overwrite Line Batch 
Shell :: symbolic link wsl mnt .ssh 
Shell :: ssh change pasword to key file 
Shell :: airodump output to file 
Shell :: how to open powershell in windows container 
Shell :: bijoy bangla keyboard for linux 
Shell :: Setting File Permission Allow Webserver di linux 
Shell :: npm i install react boostrapp grid 
Shell :: brew install memcached 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =