Page 1 of 1

Having differents sites

PostPosted: 04. May 2009 22:44
by VEINTYUNICO
Hi!
If you have many sites, all of them goes under the parent directory, right? "http://localhost/the_site". If you have many sites, for example "myforum" and "myphotos", you have the aliases "/myforum "C/mysites/myforum" and "/myphotos "C/mysites/myphotos" . To enter in to these sites you must write "http://localhost/myforum" or "http://localhost/myphotos".
Now if you have a registered domain, i don't know... "gregory" for example, you write "http://www.gregory.com/myforum" or "http://www.gregory.com/myphotos". What i want, is to have differents domain, www.myforum.com and www.myphotos.com and each one take you to the corresponding site, "http://www.myforums.com" leads you to "myforum" site, and "http:/www.myphotos.com" to "myphotos".

How do I do that?

Re: Having differents sites

PostPosted: 04. May 2009 22:53
by Sharley
You would need to set up virtualhosts in the xampp\apache\conf\extra\httpd-vhosts.conf file.

An advanced search in the XAMPP for Windows forum for vhost or virtualhost will provide many results with examples to work from.

http://httpd.apache.org/docs/2.2/vhosts/
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

Re: Having differents sites

PostPosted: 04. May 2009 23:02
by VEINTYUNICO
That was quick!
I was reading about that. Thanks!!!!!!!!