xampp on dsl sites not accessible

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

xampp on dsl sites not accessible

Postby bilakios » 14. June 2005 13:40

I have been using XAMPP with ISDN 64k connection and i was hosting locally five different sites (names obtained from www.no-ip.com).
A few days ago I've upgraded my internet connection to dsl and since then nobady can see my sites .I think my dsl modem hides the local ip address from the world so I must do port forwarding but I have no idea of how this is done!
If anyone can help i'd be gratefull!!
bilakios
 
Posts: 6
Joined: 14. June 2005 13:10

Postby alucard01 » 29. June 2005 11:49

You can do it in your router. access your router and do configuration.
alucard01
 
Posts: 122
Joined: 15. May 2005 13:51

xampp on dsl sites not accessible

Postby bilakios » 29. June 2005 15:34

thanks alucard01
I think I solved the problem by doing the port forwarding,
However I can only see one of the websites (I was hosting 5) .
I can always get to the sites through http://localhost/subdirectory
and test my code and since that's all I want to do I am not really desperate but you know how it is "if there is a problem we've got to solve it" for fun and glory !! :D
bilakios
 
Posts: 6
Joined: 14. June 2005 13:10

Postby alucard01 » 29. June 2005 17:20

I see. You have already had one BIG step forward.

Now, you can see in your httpd.conf file, and read the <virtualhost> directive.

My case is, add as many <virtualhost> as you have your web sites. If you have 5 sites, you may have 5 <virtualhost> directive.

Well actually, I am not very good at configuring apache, you therefore have to read related config about <virtualhost> or do your research through web about this tags.

Hope it helps.
alucard01
 
Posts: 122
Joined: 15. May 2005 13:51

xampp on dsl sites not accessible(SOLVED)

Postby bilakios » 02. October 2005 17:27

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
    bilakios
     
    Posts: 6
    Joined: 14. June 2005 13:10


    Return to XAMPP for Windows

    Who is online

    Users browsing this forum: No registered users and 38 guests