point domains to folders under LAMP (Work of AddonDomains)

January 31, 2015 1.2k 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:

by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
Have another answer? Share your knowledge.