Hi,
Hope you are well.
I created droplet and set up two virtual hosts (pointed two domains to DigitalOcean NS).
One is working just fine and I can access virtual host files from domain name, but second is giving me “404 Not Found nginx/1.4.1 (Ubuntu)”.
Both set up properly and same way.
Could it be the problem that one of the domains have same name as droplet and PTR record?
Thank you!
Best regards, Ignaty.
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!
Check nginx’s error logs. The <code>root</code> path is probably incorrect.
<b>“Both set up … same way.”</b> <br> <br>That’s the problem. They can not be the same. Almost the same? Yes; but not exactly the same. <br> <br>Have you check out <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts”>How To Set Up Apache Virtual Hosts on Ubuntu 12.04 LTS</a>.
Oops, if using Nginx, then you want to check out <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 Serve Multiple Ghost Blogs on One VPS Using Nginx Server Blocks</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.