I have not being able to host multiple sites since I've changed my internet connection to dsl
I have a dynamic IP address and I use
"no-ip"dynamic client.
I also have five names registered with
http://www.no-ip.com and I had created five virtual hosts :
name1.no-ip.org, name2.no-ip.org etc .
Since I changed to dsl I could only see the initial page of XAMPP and I could only see the sides locally by typing their directory
eg "http://localhost/name2/index.php."
But now I think I solved the problem so here is how:
1)Find in your computer the file
hosts situated usually in C:\WINDOWS\system32\drivers\etc ,open it with notepad and you should see something like
.... 127.0.0.1 localhost add on a new line the new sites ie:
....127.0.0.1 name1.no-ip.org and on a new line
....127.0.0.1 name2.no-ip.org etc and save the file (you may have to take the
read only attribute off)
2)go to your
...\apachefriends\xampp\apache\conf directory and open the
http.conf file (make a backup copy first) and find where it says :
Listen 127.0.0.1:80 and add the following lines
Listen 127.0.0.1:90
Listen 127.0.0.1:100
Listen 127.0.0.1:111 etc....
3) scrool down to the end of the file and find the place where you have created the virtual hosts and make the following changes:
instead of :
<VirtualHost name1.no-ip.org>
change to:
<VirtualHost name1.no-ip.org:90> for the first virtual host
----------------------------
<VirtualHost name2.no-ip.org>
change to:
<VirtualHost name2.no-ip.org:100> for the second virtul host
etc.etc.
Save the file
4)the numbers 100, 110, 120, etc are the port numbers that apache is listening on for the sites so you have to do the famous [
b]port forwarding [/b] and allow your computer to open these ports
Thats all the changes you have to do so restart
xampp
and now you should be able to see your sites by entering "http://www.name1.no-ip.org:100/"on your browser (ie)
I hope it works OK for you people as it did for me