Please support our IT Professionals' Lounge advertiser: Programming Forums
Views: 1283 | Replies: 1
![]() |
hi,
i set up apache and everything went well. i can access my hompage from any computer by entering the ip address of apache's pc.
I wanted to give my website a name(e.g www.name.com), i altered the hosts file in /etc. now i can access the www.name,com from apache's pc, but can not do it from any other pcs, unless i put the ip then i can access it.
i also tried virtualhost in httpd.conf but no luck................is there any other way or am i doing it all wrong?
thank you
i set up apache and everything went well. i can access my hompage from any computer by entering the ip address of apache's pc.
I wanted to give my website a name(e.g www.name.com), i altered the hosts file in /etc. now i can access the www.name,com from apache's pc, but can not do it from any other pcs, unless i put the ip then i can access it.
i also tried virtualhost in httpd.conf but no luck................is there any other way or am i doing it all wrong?
thank you
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
You need DNS/WINS or some way for the PC's on the LAN to translate www.name.com into a local IP address.
The simplest way is on each PC to add
www.name.com<tab>192.168.1.1
to the HOSTS file, I know this is in windows\system32\drivers\etc on Windows I'm not sure for Linux it could be /etc
The simplest way is on each PC to add
www.name.com<tab>192.168.1.1
to the HOSTS file, I know this is in windows\system32\drivers\etc on Windows I'm not sure for Linux it could be /etc
Last edited by hollystyles : Jul 29th, 2006 at 12:45 pm.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode