Link to home
Start Free TrialLog in
Avatar of webmaster_prodex
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.
Avatar of Zook
Zook

1. Configure your DNS to point all names to the IP of your server. This is done in the masterconfig file, which is given in named.conf (or named.boot) depending on your bind. See "man named" for details.

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-directory
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
Did Zook's answer help you? If so, please accept his answer.
Avatar of webmaster_prodex

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
ASKER CERTIFIED SOLUTION
Avatar of Zook
Zook

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial