Can I create multiple "local domains"??

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

Can I create multiple "local domains"??

Postby muzicman82 » 05. September 2006 02:44

I'd like to be able to do something like this:

http://site1/ - The local XAMPP website at htdocs/site1/

http://site2/ - The local XAMPP website at htdocs/site2/

This would make it much easier for me to develop multiple websites from a single XAMPP installation.

An even better approach would be to have multiple htdocs folders. So, maybe htdocs1 and htdocs2. Any info on this? Thanks!!
muzicman82
 
Posts: 3
Joined: 05. September 2006 02:32

Re: Can I create multiple "local domains"??

Postby Izzy » 05. September 2006 03:34

muzicman82 wrote:I'd like to be able to do something like this:

http://site1/ - The local XAMPP website at htdocs/site1/

http://site2/ - The local XAMPP website at htdocs/site2/

This would make it much easier for me to develop multiple websites from a single XAMPP installation.

An even better approach would be to have multiple htdocs folders. So, maybe htdocs1 and htdocs2. Any info on this? Thanks!!

You can set up directories within the htdocs tree:

xampp/htdocs/site1/yoursite1filesinhere
http://localhost/site1/

xampp/htdocs/site2/yoursite2filesinhere
http://localhost/site2/

Or you can set up the xampp/apache/conf/httpd-virthosts.conf file with your sites so they can be accessed as:

http://yourvirtualhostname.tld/

http://yourvirtualhostnameAlias.tld/
Etc.Etc.

There are several recent post in this forum with instructions for setting up Virtual Hosts Containers.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 207 guests