Hello,
I host web site on apache and tomcat and connected them via mod_jk on fedora core 4 and it works perfectly .
Server has 2 Ethernet card one public ip and one privet ip ,
Suppose My domain name is domain.com I registered my domain name at ISP the problem is the dns of the ISP is always goes down , so I tried to allow the local network to access the site by the private ip during the ISP DNS down , but when I configured apache as :
<VirtualHost domain.com:80>
DocumentRoot /var/ ServerName domain.com
DirectoryIndex index.html
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost 10.1.1.5:80>
DocumentRoot /var/ ServerName 10.1.1.5
DirectoryIndex index1.html
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
Where index.html redirect to And index1.html redirect to I tested it and it works but when the ISP DNS goes down both are not working, know that I use ISP DNS as preferred DNS .
Could any one can help,
I host web site on apache and tomcat and connected them via mod_jk on fedora core 4 and it works perfectly .
Server has 2 Ethernet card one public ip and one privet ip ,
Suppose My domain name is domain.com I registered my domain name at ISP the problem is the dns of the ISP is always goes down , so I tried to allow the local network to access the site by the private ip during the ISP DNS down , but when I configured apache as :
<VirtualHost domain.com:80>
DocumentRoot /var/ ServerName domain.com
DirectoryIndex index.html
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost 10.1.1.5:80>
DocumentRoot /var/ ServerName 10.1.1.5
DirectoryIndex index1.html
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
Where index.html redirect to And index1.html redirect to I tested it and it works but when the ISP DNS goes down both are not working, know that I use ISP DNS as preferred DNS .
Could any one can help,