You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tapas Mishra <mi...@gmail.com> on 2011/01/10 08:17:59 UTC

[users@httpd] invalid response from Proxy dns lookup failure

Ok here is a situation  today morning I had rebooted the server and I
observed and I see response for one of the application complaining
http://myserver.com/app1

This is the error I see in browser

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /app1.

Reason: DNS lookup failure for: myserver.com

Where as if I were to check only http://myserver.com

then I can see every thing very properly without any error.

Here is my apache2 configuration

http://pastebin.com/aXceB1wt

here is access log on the server which is front end (acts as reverse proxy)

http://pastebin.com/tggRRY2E
and error log on reverse proxy server
http://pastebin.com/vGQZS4xb

and the server  where the application is actually hosted  I do not see
any log which can help me to understand that the request /app1
actually reached there.
How ever I tried to see the http headers in http_live
here they are
http://pastebin.com/QX2FeUtp

So what can this error be pointing to ?
Since until 2-3 days back every thing was working perfectly with same
settings and same configurations.
Today I had restarted server after many days just for maintenance and
after reboot
 I find all applications except the one which I pointed here working properly.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] invalid response from Proxy dns lookup failure

Posted by Tapas Mishra <mi...@gmail.com>.
On Mon, Jan 10, 2011 at 8:47 PM, Joost de Heer <jo...@sanguis.xs4all.nl> wrote:
>> When my proxy pass entries look as follows
>>
>>  ProxyPass /app1 http://192.168.1.3:8080/app1
>>  ProxyPass / http://192.168.1.3
>>  ProxyPassReverse /app1 http://192.168.1.3:8080/app1
>>  ProxyPassReverse / http://192.168.1.3
>>
>>  then some one from internet is able to
>> access the sites.But from within LAN people are unable to access it.
>>
>> How ever if I use
>>
>>  ProxyPass /app1 http://site1.myserver.com:8080/app1
>>  ProxyPass / http://site1.myserver.com
>>  ProxyPassReverse /app1 http://site1.myserver.com:8080/app1
>>  ProxyPassReverse / http://site1.myserver.com
>>
>> then things work on LAN but from internet it is not accessible and
>> errors are the ones I mentioned while starting the  thread.
>>
>> What can be a solution in this case as I do not have a DNS at my
>> disposal I am simply not allowed to have one.
>
> Add the entry to the host table of the reverse proxy.
Give me some link I will go through it I am not able to understand
what you said.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] invalid response from Proxy dns lookup failure

Posted by Joost de Heer <jo...@sanguis.xs4all.nl>.
> When my proxy pass entries look as follows
>
>   ProxyPass /app1 http://192.168.1.3:8080/app1
>   ProxyPass / http://192.168.1.3
>   ProxyPassReverse /app1 http://192.168.1.3:8080/app1
>   ProxyPassReverse / http://192.168.1.3
>
>   then some one from internet is able to
> access the sites.But from within LAN people are unable to access it.
>
> How ever if I use
>
>   ProxyPass /app1 http://site1.myserver.com:8080/app1
>   ProxyPass / http://site1.myserver.com
>   ProxyPassReverse /app1 http://site1.myserver.com:8080/app1
>   ProxyPassReverse / http://site1.myserver.com
>
> then things work on LAN but from internet it is not accessible and
> errors are the ones I mentioned while starting the  thread.
>
> What can be a solution in this case as I do not have a DNS at my
> disposal I am simply not allowed to have one.

Add the entry to the host table of the reverse proxy.

Joost

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] invalid response from Proxy dns lookup failure

Posted by Tapas Mishra <mi...@gmail.com>.
On Mon, Jan 10, 2011 at 5:23 PM, Joost de Heer <jo...@sanguis.xs4all.nl> wrote:
> On 01/10/2011 08:17 AM, Tapas Mishra wrote:
>>
>> Ok here is a situation  today morning I had rebooted the server and I
>> observed and I see response for one of the application complaining
>> http://myserver.com/app1
>>
>> This is the error I see in browser
>>
>> Proxy Error
>>
>> The proxy server received an invalid response from an upstream server.
>> The proxy server could not handle the request GET /app1.
>>
>> Reason: DNS lookup failure for: myserver.com
>
> Your proxy host can't resolve myserver.com
>
>> http://pastebin.com/aXceB1wt
>
> Is there a special reason why you have a proxypass to http, but a
> proxypassreverse to https?
Thanks that was a mistake indeed.
Apart from this I  found some thing which I feel is the root cause of
the entire problem

When my proxy pass entries look as follows

 ProxyPass /app1 http://192.168.1.3:8080/app1
 ProxyPass / http://192.168.1.3
 ProxyPassReverse /app1 http://192.168.1.3:8080/app1
 ProxyPassReverse / http://192.168.1.3

 then some one from internet is able to
access the sites.But from within LAN people are unable to access it.

How ever if I use

 ProxyPass /app1 http://site1.myserver.com:8080/app1
 ProxyPass / http://site1.myserver.com
 ProxyPassReverse /app1 http://site1.myserver.com:8080/app1
 ProxyPassReverse / http://site1.myserver.com

then things work on LAN but from internet it is not accessible and
errors are the ones I mentioned while starting the  thread.

What can be a solution in this case as I do not have a DNS at my
disposal I am simply not allowed to have one.
Is there any other way because my websites are inside a corporate LAN
whose domain name is different from the ones I mentioned above as
myserver.com

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] invalid response from Proxy dns lookup failure

Posted by Joost de Heer <jo...@sanguis.xs4all.nl>.
On 01/10/2011 08:17 AM, Tapas Mishra wrote:
> Ok here is a situation  today morning I had rebooted the server and I
> observed and I see response for one of the application complaining
> http://myserver.com/app1
>
> This is the error I see in browser
>
> Proxy Error
>
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /app1.
>
> Reason: DNS lookup failure for: myserver.com

Your proxy host can't resolve myserver.com

> http://pastebin.com/aXceB1wt

Is there a special reason why you have a proxypass to http, but a 
proxypassreverse to https?

> and the server  where the application is actually hosted  I do not see
> any log which can help me to understand that the request /app1
> actually reached there.

This is understandable, because the reverse proxyserver doesn't know where to 
find myserver.com

Joost

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org