1 |
Hello, |
2 |
|
3 |
On Mon, 02 Apr 2012 14:30 +0200 |
4 |
Michael Schreckenbauer <grimlog@×××.de> wrote: |
5 |
|
6 |
> to get more info from nginx, try to increase the log level, eg |
7 |
> error_log /var/log/nginx/error_log debug; |
8 |
> php-fpm.conf looks correct to me. |
9 |
> You include fastcgi.conf. Could you post the contents? |
10 |
|
11 |
|
12 |
The fastcgi.conf |
13 |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
14 |
fastcgi_param QUERY_STRING $query_string; |
15 |
fastcgi_param REQUEST_METHOD $request_method; |
16 |
fastcgi_param CONTENT_TYPE $content_type; |
17 |
fastcgi_param CONTENT_LENGTH $content_length; |
18 |
|
19 |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; |
20 |
fastcgi_param REQUEST_URI $request_uri; |
21 |
fastcgi_param DOCUMENT_URI $document_uri; |
22 |
fastcgi_param DOCUMENT_ROOT $document_root; |
23 |
fastcgi_param SERVER_PROTOCOL $server_protocol; |
24 |
|
25 |
fastcgi_param GATEWAY_INTERFACE CGI/1.1; |
26 |
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; |
27 |
|
28 |
fastcgi_param REMOTE_ADDR $remote_addr; |
29 |
fastcgi_param REMOTE_PORT $remote_port; |
30 |
fastcgi_param SERVER_ADDR $server_addr; |
31 |
fastcgi_param SERVER_PORT $server_port; |
32 |
fastcgi_param SERVER_NAME $server_name; |
33 |
|
34 |
# PHP only, required if PHP was built with --enable-force-cgi-redirect |
35 |
fastcgi_param REDIRECT_STATUS 200; |
36 |
|
37 |
|
38 |
I have write debug not info in error log. |
39 |
|
40 |
<localhost.error_log> |
41 |
2012/04/02 17:59:24 [info] 21288#0: *4 client closed prematurely connection |
42 |
while reading client request line, client: 192.168.0.20, server: localhost |
43 |
</localhost.error_log> |
44 |
|
45 |
<localhost.access_log> |
46 |
192.168.0.20 - - [02/Apr/2012:17:59:05 +0200] "GET / HTTP/1.1" 200 633 "-" |
47 |
"Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) |
48 |
Chrome/18.0.1025.142 Safari/535.19" "-" |
49 |
|
50 |
192.168.0.20 - - [02/Apr/2012:17:59:05 +0200] "GET /favicon.ico HTTP/1.1" 200 1650 |
51 |
"-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) |
52 |
Chrome/18.0.1025.142 Safari/535.19" "-" |
53 |
|
54 |
192.168.0.20 - - [02/Apr/2012:17:59:21 +0200] "GET /info.php HTTP/1.1" 200 289 |
55 |
"-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) |
56 |
Chrome/18.0.1025.142 Safari/535.19" "0.47" |
57 |
|
58 |
192.168.0.20 - - [02/Apr/2012:17:59:24 +0200] "-" 400 0 "-" "-" "-" |
59 |
</localhost.access_log> |
60 |
|
61 |
No phpinfo output. Its strange. |
62 |
|
63 |
|
64 |
Regards |
65 |
Silvio |