webmaster_prodex
asked on
Configuring the DNS
hi
iam a newbie to apache and iam palning to have a linux box with apache installed in it. Currently we are using a shared hosting i need to configure apache with our DNS i suppose that this must be configured in the httpd.conf(is it so) Is this the only place i have to do this or how should i do this. Plz tell the procedure.
iam a newbie to apache and iam palning to have a linux box with apache installed in it. Currently we are using a shared hosting i need to configure apache with our DNS i suppose that this must be configured in the httpd.conf(is it so) Is this the only place i have to do this or how should i do this. Plz tell the procedure.
Did Zook's answer help you? If so, please accept his answer.
ASKER
i hav done this already and still iam not able to use the url but iam able to use the ip with the port
what would be the problem
what would be the problem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
2. In httpd.conf you need lines like these:
BindAddress *
#or BindAddress 192.168.1.1
NameVirtualHost 192.168.1.1
# then you need a VirtualHost container like this
# for every virtual site:
<VirtualHost 192.168.1.1>
DocumentRoot /usr/local/httpd/site1-dir
ServerName www.domain-of.this-server.whatever
# next is just an option
ServerAlias www.another-name.whatever alocalmachinename
#
# other config commands for this server if needed.
#
</VirtualHost>
This should be it.
cu
Zook