Question

2 websites deployed on single droplets shows same content

Posted April 11, 2021 224 views
DigitalOceanDigitalOcean Droplets

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

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.

×
Submit an Answer
1 answer

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