I'm not sure what you have wrong. Setting up the virtual servers is fairly easy. I just edit the file manually. Here is an example of my httpd.conf file's virtual server section. Note that your IP address always goes at the top. I am able to put any of the domain names followed by any page and it works correctly: ie. test.domainname.com/test5.html.
Double check you file manually and not through the webmin tool.
Restart the httpd(s) when you are done editing the file.
NOTE: Please ignore the
http:// before the names below. They are stuck there by default when I post.
Code:
<VirtualHost 216.02.01.01>
ServerAdmin dude@name.domainname.com
DocumentRoot /home/apache/domainname
ServerName http://www.domainname.com
# ErrorLog /var/adm/access_log_bak
# CustomLog logs/host.some_domain.com-access_log common
</VirtualHost>
<VirtualHost 216.02.01.01>
ServerAdmin dude@dsl-216-02-01-01.telocity.com
DocumentRoot /home/apache/dsl
ServerName dsl-216-02-01-01.telocity.com
# ErrorLog logs/host.some_domain.com-error_log
# CustomLog logs/host.some_domain.com-access_log common
</VirtualHost>
<VirtualHost 216.02.01.01>
ServerAdmin dude@domainname.com
DocumentRoot /home/apache/manual
ServerName manual.domainname.com
# ErrorLog logs/host.some_domain.com-error_log
# CustomLog logs/host.some_domain.com-access_log common
</VirtualHost>
<VirtualHost 216.02.01.01>
ServerAdmin cooldude@cooldude.com
DocumentRoot /home/cooldude/cooldude_site
ServerName http://www.cooldude.com
ErrorLog /home/cooldude/logs/error_log
CustomLog /home/cooldude/logs/access_log common
</VirtualHost>
<VirtualHost 216.02.01.01>
ServerAdmin cooldude@cooldude.com
DocumentRoot /home/cooldude/cooldude_site
ServerName cooldude.com
ErrorLog /home/cooldude/logs/error_log
CustomLog /home/cooldude/logs/access_log common
</VirtualHost>
<VirtualHost 216.02.01.01>
ServerAdmin dude@domainname.com
DocumentRoot /home/apache/mail
ServerName mail.domainname.com
</VirtualHost>
<VirtualHost 216.02.01.01>
ServerAdmin dude@domainname.com
DocumentRoot /home/dude/www/testpage
ServerName test.domainname.com
</VirtualHost>
[Edited by crabboy on 06-11-2001 at 10:31 PM]