Rewrite help when files do NOT have a ".php" extension

António P. P. Almeida appa at perusio.net
Fri Jun 3 22:47:10 MSD 2011


On 3 Jun 2011 19h40 WEST, nginx-forum at nginx.us wrote:


> in my error log i am seeing messages like this: 
>
> 2011/06/03 14:32:07 [error] 21125#0: *1768 connect() failed (111:
> Connection refused) while connecting to upstream, client:
> 216.248.232.5, server: MYDOMAIN.com, request: "GET /itsurvey
> HTTP/1.1", upstream: "http://77.12.16.8:8081/itsurvey", host:
> "MYDOMAIN.com"
>
>
> why is "upstream" connection being "refused"? and how is "upstream"
> different from "proxy"? 

It's the same thing. It's your upstream, for which nginx is acting as
reverse proxy. Proxying request for scripts to Apache.

> thanks for any ideas or advice.

Check your Apache config. Paste your nginx config somewhere so that we
can help you.

--- appa




More information about the nginx mailing list