Skip to content

Instantly share code, notes, and snippets.

@coucoseth
Created December 14, 2021 12:14
Show Gist options
  • Select an option

  • Save coucoseth/7ebc69a536d2391f7bdcee02526e887a to your computer and use it in GitHub Desktop.

Select an option

Save coucoseth/7ebc69a536d2391f7bdcee02526e887a to your computer and use it in GitHub Desktop.
add a subdomain to vps
cd /etc/nginx/sites-available then
create a .conf file or just cp the default file or any other api files and edit the ports
cd /etc/nginx/sites-enabled
ln -s /etc/nginx/sites-available/yoursubdomain
sudo certbot --nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment