I cant seem to get virtual hosts working. i have two IP address' on the box:
10.0.0.98
10.0.0.222
For some reason when i try to go to the site using the browser, they both go to the same index.html in "/var/
In the "global environment" section:
*******************
BindAddress *
Listen *:80
*******************
In the "main" section:
*******************
BindAddress 10.0.0.98
Listen *:80
DocumentRoot /var/*******************
"virtual" section:
*********************
<VirtualHost 10.0.0.222>
DocumentRoot /web/otherFolder
ServerName localhost.localdomain
<Directory "/web/otherFolder">
</Directory>
</VirtualHost>
*********************
when I type:
>httpd -S
I get:
10.0.0.222 localhost.localdomain(/yada/yada:1456)
what am i doin wong??
thanks
10.0.0.98
10.0.0.222
For some reason when i try to go to the site using the browser, they both go to the same index.html in "/var/
In the "global environment" section:
*******************
BindAddress *
Listen *:80
*******************
In the "main" section:
*******************
BindAddress 10.0.0.98
Listen *:80
DocumentRoot /var/*******************
"virtual" section:
*********************
<VirtualHost 10.0.0.222>
DocumentRoot /web/otherFolder
ServerName localhost.localdomain
<Directory "/web/otherFolder">
</Directory>
</VirtualHost>
*********************
when I type:
>httpd -S
I get:
10.0.0.222 localhost.localdomain(/yada/yada:1456)
what am i doin wong??
thanks