mschott
(usa Debian)
Enviado em 30/01/2013 - 14:22h
nos logs erro.log
2013/01/30 14:10:29 [error] 1978#0: *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 200.xxx.xxx.xx, server: localhost, request: "GET /
www.terra.com.br/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "new-huguinho.com.br"
2013/01/30 14:10:29 [error] 1978#0: *12 open() "/var/www/html/favicon.ico" failed (2: No such file or directory), client: 200.xxx.xxx.xx, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "new-huguinho.com.br"
2013/01/30 14:10:29 [error] 1978#0: *12 open() "/var/www/html/404.html" failed (2: No such file or directory), client: 200.xxx.xxx.xx, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "new-huguinho.com.br"
meu nginx.conf
user nginx;
worker_processes 4;
pid /var/run/nginx.pid;
events {}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 360;
client_max_body_size 256m;
tcp_nopush on;
tcp_nodelay on;
server {
listen 80;
server_name localhost;
error_log /var/log/nginx/localhost.error.log;
access_log /var/log/nginx/localhost.access.log;
charset utf-8;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root html; }
location / {
root /var/www/html;
autoindex on;
index index.php index.html index.htm;
}
location ~ \.php$ {
root /var/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
access_log off;
}
}
}
Engraçado que se eu crio uma pasta
www.terra.com.br e nao coloco nada nela eu consigo acesso com http://meuserver/
www.terra.com.br, agora se coloco um arquivo info.php dentro dela, nao acessa mais nem http://meuserver/
www.terra.com.br nem http://meuserver/
www.terra.com.br/info.php, da erro de file not found.
Alguém sabe pra que serve essa porta 9000?