Hello,
I have tow DNS one from ISP and Other one loacal DNS I configure apache to host our web site and I add tow virtualhost one for ISP DNS which it external.domain.com and other virtualhost local.domain.com and every thing is working normally but when the ISP DNS is down (the service form ISP is down or even the cable unplug which connect use with the ISP) no one can see the local.domain.com even if I add this url to our local dns .
- I add both dns to linux
- my /etc/host contain ExternalIP external.domain.com
LocalIP local.domain.com
So any one can help.
<VirtualHost external.domain.com:80>
DocumentRoot /var/ServerName external.domain.com
DirectoryIndex index.html
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost local.domain.com:80>
DocumentRoot /var/ServerName local.domain.com
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 wrote this question a lot in many forum but no one gave me a solution .
I have tow DNS one from ISP and Other one loacal DNS I configure apache to host our web site and I add tow virtualhost one for ISP DNS which it external.domain.com and other virtualhost local.domain.com and every thing is working normally but when the ISP DNS is down (the service form ISP is down or even the cable unplug which connect use with the ISP) no one can see the local.domain.com even if I add this url to our local dns .
- I add both dns to linux
- my /etc/host contain ExternalIP external.domain.com
LocalIP local.domain.com
So any one can help.
<VirtualHost external.domain.com:80>
DocumentRoot /var/ServerName external.domain.com
DirectoryIndex index.html
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost local.domain.com:80>
DocumentRoot /var/ServerName local.domain.com
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 wrote this question a lot in many forum but no one gave me a solution .