Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

allow apache to work externally and locally

Status
Not open for further replies.

hdamis

ISP
Feb 7, 2005
75
JO
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 .
 
If you are already willing to configure "external." and "internal." as DNS/hostnames, why don't use just reference them that way? There's no point to your "index.html" and "index1.html" if you are already looking up the site using different hostnames!

You requirements keep changing, asking questions again and again is rather bad etiquette here.

Meanwhile, you haven't clarified the client configurations and REAL usability needs here.

PLEASE DO NOT post your configuration from httpd.conf again. That's not helping!

D.E.R. Management - IT Project Management Consulting
 
I would think about finding a more reliable dns server if down time has become an issue. I'm having a very hard time understanding what you are trying to do. Are you trying to create two sites. One which is accessed publicly and a different one which only accessable locally? Or do you want to be able to access a particular site locally even when there is no connection to the outside world?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top