Virtual Host Problem (404 Not Found).


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.

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Poop! I meant: <a href=“”>How To Set Up nginx Virtual Hosts (Server Blocks) on Ubuntu 12.04 LTS</a>.

Oops, if using Nginx, then you want to check out <a href=“”>How To Serve Multiple Ghost Blogs on One VPS Using Nginx Server Blocks</a>.

Check nginx’s error logs. The <code>root</code> path is probably incorrect.