Recognition

No awards yet.

Posts

1 Posts
  • Published Question

    How do you host 2 sites from 1 nginx droplet?

    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...
    Accepted Answer: 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.
    2 By evanp Nginx Configuration Management Ubuntu 16.04