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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.