I am having a similar issue, each virtual server I have setup routes to /var/www/html/index.html (i created the index.html file to confirm it loads from this location) instead of the respective directory like /home/myusername/public_html/
The httpd.conf for a user's virtual host looks like this:
<VirtualHost xx.xx.xx.xx:80>
SuexecUserGroup "#502" "#503"
ServerName myusername.net
ServerAlias
www.myusername.netServerAlias webmail.myusername.net
ServerAlias admin.myusername.net
DocumentRoot /home/myusername/public_html
ErrorLog /home/myusername/logs/error_log
CustomLog /home/myusername/logs/access_log combined
ScriptAlias /cgi-bin/ /home/myusername/cgi-bin/
ScriptAlias /awstats /home/myusername/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/myusername/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/myusername/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.myusername.net
RewriteRule ^(.*)
https://myusername.net:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.myusername.net
RewriteRule ^(.*)
https://myusername.net:10000/ [R]
Alias /dav /home/myusername/public_html
<Location /dav>
DAV On
AuthType Basic
AuthName myusername.net
AuthUserFile /home/myusername/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
</Location>
<Files awstats.pl>
AuthName "myusername.net statistics"
AuthType Basic
AuthUserFile /home/myusername/.awstats-htpasswd
require valid-user
</Files>
</VirtualHost>
Operating system CentOS Linux 5
Webmin version 1.430
Virtualmin version 3.61.gpl (GPL)
Theme version 6.1
Kernel and CPU Linux 2.6.16-xenU on i686
I must be missing something obvious, appreciate any help.
TIA - Walter