Help Needed!

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

Help Needed!

Postby salman » 25. September 2008 20:59

HI,
I have a couple of questions/issues to be solved.

1) When I hit http://localhost/ in my browser in take me too the http://localhost/xampp how can I make it to open the index.html located in htdocs folder.

2) I have created a localhost on my LAN now I want when ever some one from my network visit http://salmansite.com it take that person to my localhost site. Here I want to mention that I haven't registered this domain and nor I want to register it what I want is if someone from my local area network visit that address then my local site opens.
salman
 
Posts: 4
Joined: 12. February 2008 11:23

Postby Wiedmann » 25. September 2008 21:11

1) When I hit http://localhost/ in my browser in take me too the http://localhost/xampp how can I make it to open the index.html located in htdocs folder.

Delete the file "index.php".

2) I have created a localhost on my LAN now I want when ever some one from my network visit http://salmansite.com it take that person to my localhost site. Here I want to mention that I haven't registered this domain and nor I want to register it what I want is if someone from my local area network visit that address then my local site opens.

a) You must edit the HOSTS file on each PC on your LAN.
b) Or install your own DNS server and each PC on your LAN must use this DNS server.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby salman » 26. September 2008 06:54

does VHost is not the solution of my second issue?
salman
 
Posts: 4
Joined: 12. February 2008 11:23

Postby Wiedmann » 26. September 2008 08:45

does VHost is not the solution of my second issue?

No.

It's like a telephone call.
- First you must know the phone number for Simpsons family.
(browser asks the dns server for the ip for a hostname)

- And if someone accepts the call, you can ask: Is Homer at home or is Bart at home, I want talk to them?
(That's the VHosts in Apache. But only needed, if you have more then one hostname on the same server with different content.)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests