I'm trying to host 2 sites from 1 droplet. The droplet is Ubuntu 16.04 using nginx. I'm also using PHP 7.0
I own 2 domains that are pointed to the droplet. website1.com and website2.com.
website1.com uses Let's Encryp...
I missed it at first but return 301 http://$server_name$request_uri; on line 9 of website2.com creates an infinite redirect, your site should work as expected upon removal and a reload of nginx.