2010/4/17 Schokobecher <schokobecher@googlemail.com>:
> I'm running nginx 0.8.35 with PHP 5.3.2.
> The problem is that I have to set allowed_clients to the external IP
> of my server, else I get the 502 Bad Gateway Error.
>
> My default site of nginx:
> http://pastebin.com/Ga5Vj5u3
>
> My php5-fpm.conf:
> http://pastebin.com/njhywXfy
>
> the nginx error log gives me:
> 2010/04/17 14:36:19 [error] 26819#0: *1 upstream prematurely closed
> connection while reading response header from upstream, client:
> 188.194.9.202, server: localhost, request: "GET /php.php HTTP/1.1",
> upstream: "fastcgi://127.0.0.1:9000"$
>
> Is it a problem/security risk to add the external IP?
> If yes, how can I fix this problem?
why do you have to set an external IP address ? nginx is requesting
127.0.0.1:9000 and fpm allows only clients from 127.0.0.1. It's good !
Do you have fpm log errors ?
Maybe it's just your PHP script which is broken
--
Subscription settings: http://groups.google.com/group/highload-php-en/subscribe?hl=en