How to using NGINX Multiple ssl certificates on one ip
I experienced setup and configure nginx multiple domain on one VPS. In this tutorial, How to using NGINX Multiple ssl certificates on one ip. Multiple SSL Certificates use letsencrypt Web server: Nginx Two domain: domain1.com domain2.cm IP VPS: 111.111.111.222 You buy VPS linux and configure multiple domain on one ip VPS server. I use VPS linode.com cheap 5 USD/month. I love it! Nginx Redirect all HTTP requests to HTTPS server { listen 80; listen [::]:80 ipv6only=on; if ($host = www.domain1.com) { return 301 https://$host$request_uri; } if ($host = www.domain2.com) { return 301 https://$host$request_uri; } server_name www.domain1.com domain1.com www.domain2.com domain2.com; return 444; } Nginx config for domain1.com server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.domain1.com domain1.com; root /path/to/do