Not able to see the content after dns redirection

Posted January 12, 2015 1.7k views

I have a website say
I redirected and changed my nameservers to point to digitalocean servers I have.
Unfortunately the website is redirecting by default to /var/www and showing index.html content.
Instead I want to redirect the to /var/www/example folder

What should I do?

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.

2 answers

You need to setup your virtual hosts properly here is a DO tutorial on how to do it.

If you get stuck or get an error let us know and we will try to help you.

Hope this helps.

Good Luck!

by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one website or domain off of a single server and IP address. When used with nginx, virtual hosts are called Server Blocks. This tutorial covers setting up server blocks on an Ubuntu server.

Hello aguilar,
We have setup virtual hosts properly.
But the problem we are facing is something like this.

Eg: I have two websites and

When I set up my website, example1 it works fine and its content shows up. But when I setup example2 with its content. Even example1 starts showing the content of example2.

When I check their paths in the etc/sitesavailable, It has correctly different paths.

For example1 its /var/www/example1/publichtml
For example2 its /var/www/example2/public

Even though the paths are setup differently the contents of example1 gets overwrite with the contents of example2

Kindly help us out.
Don’t you guys have a live support?

Submit an Answer