How to add Nginx as a reverse proxy
The following commands are tailored for Ubuntu/Debian systems. If you’re using a different Linux distribution, you may need to adjust package management commands accordingly (e.g.,
yum for CentOS, brew for macOS).Create a temporary Nginx config for creating SSL certificates
Make sure to change subdomain.domain.tld to your actual subdomain and ensure that it is pointed to your server’s IP address.
/etc/nginx/sites-available/subdomain.domain.tld:Edit the Nginx config
Edit the file
/etc/nginx/sites-available/subdomain.domain.tld.- Secure Config (Recommended)
- Simple Config

