Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Works live but not local |
|
Author |
|
gleamthecube
Joined: 07 Apr 2009 Posts: 2
|
Posted: Tue 07 Apr '09 21:36 Post subject: Works live but not local |
|
|
I setup a Apache server for someone on a dedicated machine to host their site. The site comes up with http://localhost and with the IP to the server machine. But will not work with the actual URL.
If I test to see if the site is working outside of the network it works fine, from both the URL and the servers IP address.
Any ideas of what is wrong? |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Wed 08 Apr '09 10:42 Post subject: |
|
|
How did you set up the DNS inside youir LAN? I guess outside there is a external DNS server which point to your WAN IP? |
|
Back to top |
|
gleamthecube
Joined: 07 Apr 2009 Posts: 2
|
Posted: Thu 09 Apr '09 2:27 Post subject: |
|
|
Yeah the DNS is external, how do I know if I set up the DNS inside my LAN? |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 09 Apr '09 17:20 Post subject: |
|
|
If there a just a few PCs in your network you can edit the hosts[1] file and add there the right DNS name for the server on each client (not on the server)
e.g.
Code: |
192.168.100.1 server.tld
192.168.100.1 www.server.tld
|
If there are more than a few PCs you need to set up a DNS server in your LAN. if you are in a company in inside a network domain from a windows server your administrator can set up the DNS.
[1]H:\WINDOWS\system32\drivers\etc\hosts
a file with NO extension (edit only with notepad) |
|
Back to top |
|
|
|
|
|
|