I am at a loss in how to word this but...

[color=#000080]…I have VirtualMin 3.56.gpl on CentOS 5.1, presently hosting four domains. I have 5 authoritative Name Servers, compliments of my domain registrar, providing URL redirection for all four domains. My DNS reports, provided by checkdns.net, come up with no errors. So, what’s the problem?

All http traffic…traffic for all four domains…is directed to the wrong directory; instead of being directed to each’s /home/PREFIX/public_html and home/PREFIX/domains/FQDN/public_html, all requests go to var/www/html.

This has to be a DNS issue, but at what level?[/color]

Not DNS, it just points requests to the proper IP, but can do nothing about virtual domains once there. DNS is getting the request to your server just fine, so it’s OK.

Your apache server is handling all requests with the default server, no the proper virtual domain server. I’ve messed his up before a hundred different ways.

Make sure virtual domains are actually set up in apache, and that the requests for specific domains are actually pointed to the correct …/public_html directories.

Each virtual domain should have an entry that in the apache config files that looks something like this:

<VirtualHost default:80>
ServerName myurl.com
ServerAlias www.myurl.com
DocumentRoot /home/myurl/data
ErrorLog /home/myurl/logs/error_log
CustomLog /home/myurl/logs/access_log common
ScriptAlias /cgi-bin/ /home/myurl/cgi-bin/
<Directory /home/myurl/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
</Directory>
</VirtualHost>

See the troubleshooting common problems guide. There is a section entitled "The Wrong Site Shows Up". Sounds about right, eh?

http://www.virtualmin.com/documentation/id,troubleshooting_common_problems/#the_wrong_site_shows_up