Business Management | Editors Column | Hosting Customers | Interviews & PR | Marketing/Advertising | Online Marketing/SEO | Web Hosting | Web Hosting Reviews

Web Hosting Reviews and Tutorials

Host Unlimited Domains at Host Monster for $6.95 - click here

How to make an Alias in httpd.conf

by WHRKIT on February 23, 2010

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:

ServerAlias domain_A.com
ServerAlias domain_B.com

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.

/usr/local/cpanel/bin/apache_conf_distiller –update

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.

Check out LiquidWeb here

Related posts:

  1. Poor Man’s Version of Server Security
  2. Liquidweb Customer Review
  3. Liquidweb rocks the house … again
  4. LiquidWeb Reviewed and Rated
  5. Apache HTTP Web server configuration Tutorial
  6. How to kick an unauthorized user off a SSH session and Linux server?
  7. Apache Webserver – A quick tutorial for new Admins

Leave a Comment

Previous post:

Next post: