Click to See Complete Forum and Search --> : apache hostname question
Arisen
08-07-2003, 10:02 AM
I have setup an apache webserver on a local intranet. for now it has to be accessed vie its IP (192.168.1.101). how can it be access by "http://linuxbox"?.
for the apache configuration, can i spefify any server name? Some documantation say that it has to start with "www.", others stress that it has to be a qualified DNS.
it's set with the following line in your /etc/apache/httpd.conf
ServerName your.servername.net
Also it does have to be a real domain name in the sense that your DNS server has to know the name.
You could set up an alias for it in your DNS if you just want to be able to acces it by the short name "linuxbox" but there will have to be a proper fully qualified name for it in DNS as well.
Arisen
08-07-2003, 10:15 AM
So, essentially, I have to set up a DNS server on that linux box as well
Originally posted by Arisen
So, essentially, I have to set up a DNS server on that linux box as well
you could do it with your /etc/hosts file if you don't want to set up a DNS server. if you have multiple machines, you would have to do it on each one.
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.