Report this

What is the reason for this report?

2 websites deployed on single droplets shows same content

Posted on April 11, 2021

Hi,

Can anyone help me?

I tried to host 2 websites test1 and test2.

Created two different folders test1 & test2 in /var/www/

Did all Apache configuration to bring the sites up.

When I tried to bring test1, everything worked fine and test1 is working great.

But the problem started when we try to make the test2 website up.

test2 website also shows the same content of test1.

Im not getting where am I going wrong.

Can anyone guide me plz

Regards, Prashanth



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!

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.

Hi there,

This usually could happen when the Apache user does not have read and write permissions to the website files and directories.

You could use the following command to set the ownership of the files to the Apache user:

chown -R www-data:www-data /var/www/your_second_website

Let me know how it goes.

Also if you are adding two WordPress websites, you could follow the steps from this video here:

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.