point domains to folders under LAMP (Work of AddonDomains)

January 31, 2015 1.9k views

i have install LAMP on UBUNTU Without Any problem and now if i point my domain to my VPS ip it's work normally,

i tried use .htaccess but it didn't work for me

i want to Point many domains to same VPS ip but not displaying the same content i mean that for example The first Domain point to a Sub Folder and the Others to a different Folders if we use For Example CPANEL it's easy to Click on Addon Domains But Now i don't have any idea about what should i do? please Help me !
dns lamp point!

1 Answer

Take a look at:

You will need to create a Virtual Host for each separate domain that you are going to host on your droplet. Make sure you add the needed DNS records as well:

This article explains how to manage your DNS records using the DigitalOcean Control Panel and can help you decide if DigitalOcean's DNS management tools are right for your situation.
Have another answer? Share your knowledge.