Having differents sites

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Having differents sites

Postby VEINTYUNICO » 04. May 2009 22:44

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?
VEINTYUNICO
 
Posts: 28
Joined: 27. September 2008 11:57

Re: Having differents sites

Postby Sharley » 04. May 2009 22:53

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
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Having differents sites

Postby VEINTYUNICO » 04. May 2009 23:02

That was quick!
I was reading about that. Thanks!!!!!!!!
VEINTYUNICO
 
Posts: 28
Joined: 27. September 2008 11:57


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 69 guests