Assuming on your Linux Apache server you have created 2 websites. You have setup everything in appropriate folders in your /home/ directory structure.
/home/account_A/public_html/ -> domain_A.com
/home/account_B/public_html/ -> domain_B.com
Now you want to have /home/account_B/public_html/ to be the alias of /home/account_A/public_html/ so that both domains serve exactly the same pages, images and scripts.
So, for a case like this you need to make a ServerAlias entry into httpd.conf for each domain involved.
Here are the entries you would have to make:
To round it all up you need to make sure that these configuration changes are applied and that Apache knows what is going on. Run the following command via SSH.
Are you “lost in translation” when it comes to the more complicated pieces with Linux and Apache? Why not consider a fully managed web server instead and spend your time on things you know better?! Web Hosting Resource Kit highly recommends LiquidWeb web hosting. LiquidWeb offers fully managed dedicated servers for low prices. Their managed services are standard, not an expensive web hosting add-on.