Quote:
|
Originally Posted by arifdayfolks
Dear all,
i have server running as proxy server and firewall(Fedora 6, IP private : 192.168.0.3, computer name : home) , and i want built website (just access for LAN) , i have already configure apache,php, mysql and it woks, but how to translate address from http://192.168.0.3/ or http://home/ to http://mylocaldomain.local?
thanks 
|
On a LAN you need to edit the /etc/hosts file with an alias for the machine that is running apache.
If this is the ipaddress of your webserver and it is repeated on every hosts file on the LAN
192.168.0.3 pc3 anything anyotherthing apachemachine mylocaldomain.local
then by typing any of these into your web browser you should connect to the machine running apache.
http://pc3
http://anything
http://anyotherthing
http://apachemachine
http://mylocaldomain.local
on the local machine, you could type
http://localhost
or
http://localhost.localdomain
as well as the previous five. (All nodes should have identical /etc/hosts files)
which would work as well, that is because of this line
127.0.0.1 localhost.localdomain localhost
I don't think you need dns service running on a LAN , only for WWW