I have the same issue. Firstly, here is my virtual hosts area of my httpd.conf:
Code:
NameVirtualHost *
<VirtualHost *>
DocumentRoot /home/[username1]/public_html
ServerName www.[domain1].com
ServerAlias [domain1].com
ScriptAlias /cgi-sys/ /var/www/cgi-sys/
ScriptAlias /cgi-bin/ /home/[username1]/public_html/cgi-bin/
<Directory "/home/[username1]/public_html/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
CustomLog logs/[domain1].com-access_log combined
ErrorLog logs/[domain1].com-error_log
</VirtualHost>
<VirtualHost *>
DocumentRoot /home/[username2]/public_html
ServerName www.[domain2].info
ServerAlias [domain2].info
ScriptAlias /cgi-sys/ /var/www/cgi-sys/
ScriptAlias /cgi-bin/ /home/[username2]/public_html/cgi-bin/
<Directory "/home/[username2]/public_html/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
CustomLog logs/[domain2].info-access_log combined
ErrorLog logs/[domain2].info-error_log
</VirtualHost>
Secondly, here is my /etc/hosts file:
Code:
127.0.0.1 localhost.localdomain localhost
*.*.*.* [stock name] [ip with dashes instead of periods]
*.*.*.* [domain1].com [username1]
*.*.*.* [domain2].info [username2]
I believe that to be correct. Now, I've tried removing the asterisk in the <VirtualHost *> tag and replacing it with <VirtualHost *.*.*.*>, <VirtualHost *.*.*.*:80> and <VirtualHost *:80> all to no avail. Here's my current error:
Code:
[root@mcupples htdocs]# service httpd stop
Stopping httpd: service ht [ OK ]
[root@mcupples htdocs]# service httpd start
Starting httpd: [Wed Apr 25 11:38:56 2007] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address i
s not supported, proceeding with undefined results
[ OK ]
That is with just the <VirtualHost *> tag. I get different errors depending on which variation I use - hopefully I'm just missing a minor thing.
Thanks,
Matt