No, no mod_proxy. Also I was getting the same thing with lighttpd.<br>
This seems to somehow be dns related. It appears that the ip of the new machine fluctuates randomly.<br>
The admin of the network hosting the server says everything is alright there, but the ip just seems to go back and forth.<br>
At the same time, i've stopped the web server on the original machine, and the error is still Bad gateway :P<br>
Now it seems to be better, so I am hoping that this will fix by itself ;)<br>
<br>
<br><br><div><span class="gmail_quote">On 1/31/06, <b class="gmail_sendername">Ezra Zygmuntowicz</b> <<a href="mailto:ezra@yakima-herald.com">ezra@yakima-herald.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Jan 31, 2006, at 8:50 AM, Bogdan Ionescu wrote:<br><br>> I have moved my project to a dedicated server and I am getting a<br>> very annoying behaviour.<br>> I am able to view the site just fine when using the ip.
<br>> The name is properly resolved on my computer, however I am getting<br>> "Bad Gateway The proxy server received an invalid response from an<br>> upstream server."<br>> This is simply random. The site works for several minutes, then i
<br>> get this message for some time.<br>> I get nothing in any of the logs, and I get the same behaviour on<br>> both apache2 and lighttpd.<br>> Using directly the IP works with no problems at all.<br>><br>
> I would really appreciate some clues on how to deal with this<br>> (well, other than getting drunk and forgetting about ;) )<br>> Thanks,<br>> Bogdan<br><br><br>Bogdan-<br><br> I have seen that error before when I was using an apache vhost with
<br>proxypass and proxypassreverse to proxy to a lighty server on a high<br>port. I have a slight mis-configuration in the proxy vhost and it<br>made every request to the server give that same error until I fixed it.<br><br>
Are you using mod_proxy for anything with apache? If so I can send<br>you a good known working vhost to use. Let me know.<br><br>Cheers-<br>-Ezra Zygmuntowicz<br>Yakima Herald-Republic<br>WebMaster<br><a href="http://yakimaherald.com">
http://yakimaherald.com</a><br>509-577-7732<br><a href="mailto:ezra@yakima-herald.com">ezra@yakima-herald.com</a><br><br><br><br>_______________________________________________<br>Rails mailing list<br><a href="mailto:Rails@lists.rubyonrails.org">
Rails@lists.rubyonrails.org</a><br><a href="http://lists.rubyonrails.org/mailman/listinfo/rails">http://lists.rubyonrails.org/mailman/listinfo/rails</a><br></blockquote></div><br>