Web server and Multiple Virtualhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux