By dixonge
I have three domains set up. One points to /var/www (my Ghost install) and works correctly. After a lot of troubleshooting my other two test domains now resolve, but they go to the /var/www location instead of the locations specified in their configuration files. Both .conf files include this:
listen 80; root /var/www/domainname.com; index index.php index.html index.htm;
server_name domainname.com;
Why are these configuration files not working?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Have you restarted Nginx? If so, what’s the output of <code>ls -la /var/www/</code>?
Did you create symbolic links for all three domains in <code>/etc/nginx/sites-enabled/</code>? This tutorial may be of assistance: <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3”>How To Set Up nginx Virtual Hosts (Server Blocks) on Ubuntu 12.04 LTS</a>.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.