By parrella20
Hey there,
I’m having a problem where my domain davidparrella.com is being redirected to another wordpress site on my server, 512filmfestival.com. Some older (2013) tutorials seem to say that for multiple WordPress sites I would need Docker, but newer posts on the community seem to have people running multiple WordPress sites just fine using Apache normally to redirect domains. I also have two other static HTML sites on this droplet which are not affected by this glitch, and they get directed to their appropriate folders normally.
Here’s what I did: I started a WordPress site with the domain davidparrella.com, DNS server is pointed to my droplet IP with an A record. This is in the directory /var/www/dp
I then (months later) started another WordPress site with another domain (and separate databases), 512filmfestival.com, DNS server pointed the same way. I encrypted it with LetsEncrypt, and then also encrypted my first wordpress site as well. This site is in the directory /var/www/512
Here are my Apache config files for: 512filmfestival.com.conf 512filmfestival.com-le-ssl.conf
and davidparrella.com.conf davidparrella.com-le-ssl.conf
My hostname for the machine is: davidparrella
My hosts file has 127.0.1.1 as davidparrella.com
Any help would be greatly appreciated as I can’t seem to track this one down… 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!
Hello,
Your configuration files look correct. I’ve had a similar issue in the past due to incorrect ownership of the files. You need to make sure that you’ve set the owner and the group for your new site to the Apache user so that it Apache could read the files of your new site:
chow -R www-data:www-data /var/www
Also, I would suggest checking your Apache error logs for some extra information:
tail -100 /var/log/apache2/error.log
Regards, Bobby
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.