I'm beginning to pull out my hair.
Using Redhat/Apache we've three virtual hosts set up to serve three Drupal based domains and a fourth virtual host set up to serve Redmine via passenger all from one machine.
This set up is fine for all traffic, all network addresses can resolve all four domains. Due to the networking infrastructure, the box in question uses a proxy to see the outside world.
I have attempted to access the Redmine API from a script on the local machine and the response is an error:
While trying to retrieve the URL: http://projects/users.xml The following error was encountered: Unable to determine IP address from host name for projects The dnsserver returned: Name Error: The domain name does not exist. This means that: The cache was not able to resolve the hostname presented in the URL. Check if the address is correct.
Accessing the API from an external machine provides the expected response, so the API is accessible - which leads me to believe that this is only a problem with Apache or/and PHP resolving the virtual host domain from itself.
I've made an educated guess that this might be a proxy issue, that the proxy being used is unaware of the local network DNS, but I don't know how to turn the proxy off for Apache to check, as I didn't set up this server and not familiar with proxy requirements generally.
If I can confirm whether or not this is a proxy issue, how do I make an exception for certain domains? I assume I need to make use of the NO_PROXY environment variable, but again, I don't know how to do this for the Apache user, and more importantly, dumping the ENV variables for the Apache user doesn't show a HTTP_PROXY value at all, so I am assuming Apache uses proxy configuration elsewhere.
Am I missing something obvious?
EDIT: As requested, nslookup for the domain returns:
$ nslookup projects Server: 10.11.6.31 Address: 10.11.6.31#53 Name: projects.INNSERVE.LOCAL Address: 10.11.6.48
EDIT 2: As requested, wget results for URL in question:
$ wget projects/users.xml --2012-12-22 19:12:51-- http://projects/users.xml Resolving projects... 10.11.6.48 Connecting to projects|10.11.6.48|:80... connected. HTTP request sent, awaiting response... 401 Authorization Required Authorization failed.