"Object Not Found" issues with Multisite + Sub Directory Install

March 17, 2015 2.1k views
Ubuntu WordPress DNS LEMP

I have an Nginx Setup and have placed the new Mapped Domain to the Nginx Config.

However I am not too sure how I can set this up since it is the first time I am setting up a Domain to a Multisite Subdomain.

Here is how my server works.

I have originally added www.domain.com to the Nginx Server config and works fine.

Then I have a new website which was www.domain.com/newsite. Which I mapped with www.newsite.com, have also added this new domain in the Nginx Config.

However, the www.newsite.com is giving me the “Object Not Found” error. So I added the www.newsite.com domain to my dns but not too sure how to set it up since it still does not work.

Please let me know what I need to do.


1 Answer

This guide on setting up multiple sites using server blocks in Nginx should help you get both of your domains working: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

by Justin Ellingwood
When using the Nginx web server, server blocks (similar to the virtual hosts in Apache) can be used to encapsulate configuration details and host more than one domain off of a single server. In this guide, we'll discuss how to configure server blocks in Nginx on an Ubuntu...
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!