Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

letsencrypt

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

letsencrypt

hostgator
Comment

PREVIOUS NEXT
Code Example
Shell :: hide permission denied ~/.bash 
Shell :: creating new branch 
Shell :: linux clear command 
Shell :: docker input device is not a tty 
Shell :: statsmodels logit function 
Shell :: cors github 
Shell :: how to save curl output to a file 
Shell :: dir /s cmd 
Shell :: wpa passphrase 
Shell :: jq command in linux 
Shell :: how to update git password in windows 
Shell :: gitgraken pre-receive hook declined 
Shell :: command to make shell variable as an environment variable 
Shell :: kuberetes config 
Shell :: how to install specific version of software on mac using brew 
Shell :: git how to remove files from staging 
Shell :: get program path powershell 
Shell :: why upgrade ubuntu then frequently shows this message "It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend. 
Shell :: linux acpi turn display on/off 
Shell :: sudo -s su root in one line 
Shell :: temeprature ubuntu command line 
Shell :: how to get security details of binary file 
Shell :: bluettoth device not shwoing as output in ubuntu 
Shell :: linux traverse all subdirectories and do action 
Shell :: apt remove package completely with configuration 
Shell :: how to install anbox on ubuntu 18.04 
Shell :: dos assign carriage return to variable 
Shell :: check quantity of files in a folder 
Shell :: powershell invoke 
Shell :: pip install tensorflow no matching distribution found for tensorflow 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =