Two separate domains - and files

Hi,
I've been asked to 'troubleshoot' a webserver where two different TLDs are being served. Or to be more accurate, 'domain.com' and 'domain.fr'.

So we have

/var/www/domain.com
/var/www/domain.fr

And then for some reason, the httpd.conf file points to two different configuration files.

/etc/httpd/conf/domain.d.com/httpd.conf.com
/etc/httpd/conf/domain.d.fr/httpd.conf.fr

And then in there, there are Virtualhost stuff, and what else, I don't know.

It's a bit of a dog's breakfast.

Anyway, to cut a long story short, when someone points at domain.com, he gets to domain.com, but when someone points to domain.fr, he still goes to domain.com.

So something's wrong. But the whole thing is such a mess, that I don't even know where to start. Can someone give me some tips?

Thanks.

Show the conf:

inux.com/TUTORIALS/LinuxTutorialWebSiteConfig.html

Virtual Hosts:

The Apache web server allows one to configure a single computer to represent multiple websites as if they were on separate hosts. There are two methods available and we describe the configuration of each. Choose one method for your domain:

  • Name based virtual host: (most common) A single computer with a single IP adress supporting multiple web domains. The web browser using the http protocol, identifies the domain being addressed.
  • IP based virtual host: The virtual hosts can be configured as a single multi-homed computer with multiple IP addresses on a single network card, with each IP address representing a different web domain. This has the appearance of a web domain supported by a dedicated computer because it has a dedicated IP address.

Configuring a "name based" virtual host:

A virtual host configuration allows one to host multiple web site domains on one server. (This is not required for a dedicated linux server which hosts a single web site.)

NameVirtualHost XXX.XXX.XXX.XXX

<VirtualHost XXX.XXX.XXX.XXX>
ServerName www.your-domain.com - CNAME (bind DNS alias www) specified in Bind configuration file (/var/named/...)
ServerAlias your-domain.com - Allows requests by domain name without the "www" prefix.
ServerAdmin user1@your-domain.com
DocumentRoot /home/user1/public_html
ErrorLog logs/your-domain.com-error_log
TransferLog logs/your-domain.com-access_log
</VirtualHost>