Dificuldade em configurar dois sites em servidor web
Olá, pessoal!
Estou com uma dificuldade em configurar dois sites em um Servidor WEB aqui da empresa onde trabalho.
Fiz as alterações no /etc/hosts,e no httpd.conf (Seção VirtualHosts), mas a máquina insiste em encontrar apenas a página que vem primeiro no httpd.conf.
se eu inverter a ordem dos blocos, muda a página exibida, mas não consigo fazer ele enxergar as duas pelo nome www.
Poderiam me dar uma força? Já estou tentando isso há uns dois dias e nada. Pesquisei em tudo quanto é lugar e nada.
Segue meu /etc/hosts e httpd.conf para análise. Estou usando o Centos 5.1.
Muito obrigado pela ajuda!!!
/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 nead1.ufjf.br nead1 localhost.localdomain localhost
192.168.xxx.xxx site1 site1.xxx.br site1
::1 localhost6.localdomain6 localhost6
httpd.conf (Seção Virtual Hosts)
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
NameVirtualHost 192.168.xxx.xxx:*
<VirtualHost 192.168.xxx.xxx:*>
ServerName www.site1.xxx.br
DocumentRoot /var/www/html/site1
ErrorLog nead.br-error.log
CustomLog site1.br-access.log common
</VirtualHost>
<VirtualHost 192.168.xxx.xxx:*>
ServerName www.site2.xxx.br
DocumentRoot /var/www/html/site2
ErrorLog elgg.br-error.log
CustomLog site2.br-access.log common
</VirtualHost>