Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: dragoncity99 on February 23, 2004, 06:22:10 AM

Title: Apache
Post by: dragoncity99 on February 23, 2004, 06:22:10 AM
Hi guys,

   Anyone knows how to configure apache to let me type the my webserver's hostname rather than ip to access the webpage WITHOUT registering a DNS?

I see it done on a Smoothwall's disto. But im wondering how they do it?
Title: Apache
Post by: LS-Admin on February 23, 2004, 02:48:13 PM
Well you can do this but i have a simple short solution. Open your /etc/hosts and associate a name to IP address of you Http machine then u can use its name instead of IP address on you LAN.

Other is to add create entry for apache and then add a zone for that in bind..
Title: Apache
Post by: dragoncity99 on February 23, 2004, 04:46:01 PM
I did the step on the method mentioned. 10Q very much.
But does this only works on the http machine itself ONLY right?
Coz, when i tried it type the hostname of the HTTP machine, it doesn't work.
Why?
Title: Apache
Post by: LS-Admin on February 23, 2004, 06:04:44 PM
NO.. i am able to access my http machine just by entering its name in the browser on the different machine in my LAN.
Title: Apache
Post by: dragoncity99 on February 23, 2004, 10:49:54 PM
If this is the case, do u have a DNS? Either static/dynamic DNS?

Because, im running my apacahe on Fedora Core 1, which is apache version 2. I don't have a DNS, but a loopback instead. In fact my host files are configure ("richard.sybex.com 192.168.1.1").

I run Internet Explorer 6.0 to open my HTTP machine's pages on LAN.


I tried the same thing on my Slackware and the same result occured that is i have to enter my HTTP machine's ip address.