Page 1 of 1

Help Needed!

PostPosted: 25. September 2008 20:59
by salman
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.

PostPosted: 25. September 2008 21:11
by Wiedmann
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.

PostPosted: 26. September 2008 06:54
by salman
does VHost is not the solution of my second issue?

PostPosted: 26. September 2008 08:45
by Wiedmann
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.)