Re: how to make multiple website on one host

From: Date: Sun, 03 Feb 2008 08:03:36 +0000
Subject: Re: how to make multiple website on one host
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268585@lists.php.net to get a copy of this message
jeffry s wrote:
i am wondering whether this can be done. i know it can. is it possible to make one website with the ability to host multiple website. it is something like website generator. eg: www.shopify.org let say for example i have a website www.example.org. i can point a domain name (www.example1.org) to the server where www.example.org hosted, and when user visit www.example1.org, it execute the same scripts as www.example.org with with different themes and website configuration. anyone have the idea? thanks
Jeffry, Yes, I built a site 7 years ago that could do this. The primary site was like and administration/management console. Then, in the background, there were a number of scripts that would run the secondary website. All the secondary websites used the same source directory. They referred to the $_SERVER['HTTP_HOST'] setting to figure out which host name they were coming from / going to. The site is still running today. Mind you that it needs some major overhauling, but it is still used by about 400 domains clients. Jim

« previous php.general (#268585) next »