Page 1 of 1

creating and managing subdomains on localhost

Posted: Wed Jun 14, 2006 9:40 am
by MrPotatoes
i'm still writing my CMS but i wanted to know some stuff about subdomains. i've gived a really quick trial look around on google for subdomains and PHP and doesn't look too bad. i think it's the management and the use of everything from the base domain that will be hard but i think myself and my friend can manage it.

what i want to know is how would i be able to make a subdomain on my localhost. i'm using XAMPP but i'm switching to WAMP5 this weekend so it would relate more to that (apache is apache...)

anyone have any good ideas? i'm hoping that once i create something locally i can move it remotely with no problems. one of the awesome things about PHP. *giggle*

thanx for any help guys

Posted: Wed Jun 14, 2006 1:37 pm
by daedalus__
A quick word on subdomains on localhost in IIS would be neat.

Posted: Wed Jun 14, 2006 2:27 pm
by MrPotatoes
i actually found ome tutorials but i'm going to wait until i get home in order to play with them.

Posted: Wed Jun 14, 2006 9:39 pm
by Ambush Commander
What localhost really is, is a mapping on your HOSTS file from the domain name "localhost" to the IP address 127.0.0.1. I imagine you'd map subdomain.localhost in the HOSTS file and then change Apache configuration settings accordingly using VirtualHost.

Posted: Thu Jun 15, 2006 7:02 am
by MrPotatoes
Ambush Commander wrote:What localhost really is, is a mapping on your HOSTS file from the domain name "localhost" to the IP address 127.0.0.1. I imagine you'd map subdomain.localhost in the HOSTS file and then change Apache configuration settings accordingly using VirtualHost.
i know what localhost is ;), but basically that is the process. i just have to get into the htconf file in apache to do it

Posted: Thu Jun 15, 2006 10:42 am
by guyh