i have site1 on my RH8 system at this time and it works fine. i am trying to setup a virtual host for site2 but the problem is that when i (or anyone) goes to
www.site2.com, it will bring up
www.site1.com rather than going to the site2 folder where site2's index.html page is. what am i doing wrong?
this is the syntax i have in httpd.conf:
# Virtual host site1
<VirtualHost *>
DocumentRoot /var/www/html/site1
# ServerAdmin
ServerName
www.site1.com
# ServerSignature email
DirectoryIndex index.php site1 index.html index.htm index.shtml
# ServerSignature email
# LogLevel debug
# HostNameLookups off
</VirtualHost>
# Virtual host site2
<VirtualHost *>
DocumentRoot /var/www/html/site2
# ServerAdmin
ServerName
www.site2.com
# ServerSignature email
DirectoryIndex index.html site2 index.php index.htm index.shtml
# ServerSignature email
</VirtualHost>
<Directory "/">
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>