Page 1 of 1

More than 1 site on localhost...

PostPosted: 29. June 2014 01:34
by compass1312
Hi guys,
New here and new to xampp. I have been doing a Udemy online course learning php and mySql. As part of that course, I had to install xampp, and did so successfully. As I have progressed, I want to use the stuff I've learnt on my own website that will eventually go live. I don't know how to allow 2 sites (possibly more) from the one htdocs install. I have followed <a href="http://myownhomeserver.com/2012/12/how-to-create-multiple-websites-using-apache-xampp">this</a> tutorial implicitly, but when I adjust the httpd.conf and the httpd-vhosts.conf file, xampp refuses to start.
I guess this is a common problem, just a bit confused. Hope someone can help...

Re: More than 1 site on localhost...

PostPosted: 29. June 2014 11:02
by Nobbie
The error log will tell you, what is going wrong.

Re: More than 1 site on localhost...

PostPosted: 29. June 2014 12:55
by Altrea
The shown example is incomplete. The virtualhost Start and end tags are missing. Better look for a correct tutorial in how to define Virtual hosts with Apache 2.4

Re: More than 1 site on localhost...

PostPosted: 30. June 2014 03:05
by compass1312
Altrea wrote:Better look for a correct tutorial in how to define Virtual hosts with Apache


Thanks, will do...