Single server, nginx as a reverse proxy, multiple domains/websites
Normally you create a new config file /etc/nginx/sites-available/newserver.conf for the new server and link it from /etc/nginx/sites-enabled. To use nginx as reverse proxy, you configure SSL in nginx (ssl_certificate, …) and in the location section you use proxy_pass to the non SSL server at localhost. proxy_redirect is also needed, but that only modifies the Location … Read more