in reply to How can I determine whether a URI, hostname or IP address is to the local host machine?

Some suggestions:

Create a central database accessible by all httpd machines. select * from hostname_map where ip = ? This table would have to be manually populated.

Use a job server such as gearman to do the URI requests. I've done it within cgi/mod_perl... it can be messy.

  • Comment on Re: How can I determine whether a URI, hostname or IP address is to the local host machine?
  • Download Code

Replies are listed 'Best First'.
Re^2: How can I determine whether a URI, hostname or IP address is to the local host machine?
by dbooth (Novice) on Apr 29, 2014 at 20:51 UTC
    In theory that may work, but unfortunately any solution that relies on manual configuration would defeat the purpose, because the whole point is to catch easy-to-make configuration errors that would otherwise cause infinite recursion of HTTP requests.