Hello ppl,I intend to run apache httpd, on a server, which creates an alias(when it is up), on the default port 80. When the server is down, I still want httpd to run but on a different port. I can do that, again with the port/Listen directive.
My problem is the IP. When the server is UP, I want apache to listen on the alias that i created. But if the alias duznt exist, I want it to listen on INADDR_ANY.I tried putting in both the IPs, viz, the alias and INADDR_ANY(in fact, also tried an actual IP on the machine) in two Listen directives.
If the alias exists, apache duz start the httpd. But if it duznt, it simply exits, giving a bind error:Cannot assign requested address: make_sock: could not bind to address <alias IP>.
Is there any way to tell apache to check the existence of the IP, if not do something else.
Any ideas anyone? -- Benjamin Jacob. Disclaimer : ------------------------------------------------------------------------------ If you are not the intended recipient of this transmission to whom it is addressed, or have received this transmission in error, you are hereby notified that any dissemination, distribution or copying of this transmission is strictly prohibited. Please notify us immediately and delete this e-mail from your system. The sender does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission, which cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, arrive at wrong address or contain viruses. If verification is required please request a hard-copy version. This e-mail contains only the personal opinions of the sender and does not represent an official communication from NetYantra of any manner. ------------------------------------------------------------------------------ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
![]() |