Page 1 of 1

Can I create multiple "local domains"??

PostPosted: 05. September 2006 02:44
by muzicman82
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!!

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

PostPosted: 05. September 2006 03:34
by Izzy
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.