By alex515457
I’m new to digital ocean and new to server management in general, so please forgive me if I’ve missed something obvious here.
I want to be able to host multiple domains on my single VPS, with each domain defaulting to it’s document root at /var/www/thisdomain.com/public_html
So far I have:
For a brief moment, visiting my domain successfully showed me the contents of /var/www/mydomain.com/public_html but now it is only showing me the contents of the root at /var/www
At a guess, I’m assuming the issue may be because the DNS records for my domain have been configured to link to this droplet as some kind of master domain for the server, rather than as one of many domains being hosted, but I’m not really sure.
Another thing to note, shortly before it stopped working I did install VirtualMin - just experimenting to see what it was like - I don’t see that it would cause issues but could this have affected things?
Is anyone able to point me in the right direction? Thanks very much!
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!
as I understand you have installed Apache for multiple vhosts. ok, possibly your DNS record have some issue, but let me ask you first these questions: <br> <br>1- Your multiple vhosts are based on domains, right? That means each vhost has its own domain, correct? if so, then did you configure each domain separately on DNS panel on DO? <br> <br>2- Did you create a root path for each of your vhost? <br> <br>I guess if you answered these questions you might know what went wrong. <br> <br>
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.