Web server and Multiple Virtualhost

Amrit Angsusingh amritangs at gmail.com
Sat Jan 14 09:55:49 UTC 2006


I use FC3 as the web server with 2 lan cards [intranet and internet ]
instead of the former  RH9 . I also use multiple virtualhost named for my
domain with the httpd.conf following below:-


NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /var/www/html/itcenter
ServerName itcenter.sss.go.th
<Directory "/var/www/html/itcenter">
allow from all
Options +Indexes
</Directory>
IndexOptions
DirectoryIndex index.php
</VirtualHost>



<VirtualHost *:80>
DocumentRoot /var/www/html/www
ServerName www.sss.go.th
<Directory "/var/www/html/www">
allow from all
Options +Indexes
</Directory>
IndexOptions
DirectoryIndex index.php
</VirtualHost>



and so so …………



It seems that the client could access the web just only from the first lan
card and not the second one.

If I change the config to

NameVirtualHost 192.168.0.1:80
NameVirtualHost 203.157.2.28:80
and also

<VirtualHost 192.168.0.1:80>

….

And

<VirtualHost 203.157.2.28:80>

….

The result still be the same that is we could access the web only from the
former lan card not the latter lan card.



How could I config the httpd.conf to access virtualhost from both lan cards?

Thank you

Amrit

Thailand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20060114/4dc23e0e/attachment-0002.html 


More information about the users mailing list