user nobody; worker_processes 1;
error_log logs/error.log info;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http { include mime.types; default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
sendfile on; tcp_nopush on;
keepalive_timeout 65;
server { listen 80; server_name localhost;
access_log logs/default.access.log main;
location / { root html; index index.html index.htm; }
location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
}
|