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.
Thanks
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!
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
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.