Posts Tagged ‘apache’

Nowadays, domian name is a cheap resource to make your web space cool. After you purchase a domain, most of the domain suppliers allow you to add sub-domains. Then, it is a good idea to provide sub-domains for your friends or your web sites with different styles. In Apache, you can serve multiple domains and sub-domains using one IP address. In this article, I would like to share my experience on setting up virtual host in Apache.

Scenario: We would like to set up name-based virtual hosting. We have two domains (domain1.com, domain2.com) and more subdomains. We want to serve them with one IP address. Our DocumentRoot path is docrootpath (you must replace with your real path).

Read the rest of this entry »

Tags: ,