user nobody nobody;
worker_processes 4; error_log logs/error.log;
pid logs/nginx.pid; events {
use epoll;
worker_connections 1024;
} http {
include mime.types;
default_type application/octet-stream;
snedfile on; sendfile on;
keepalive_timeout 65; access_log logs/access.log main;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'; server {
listen 80;
server_name www.test.com; location / {
root html/www;
index index.htm index.html;
}
} server {
listen 80;
server_name bbs.test.com; index index.php index.html index.html;
root html/bbs; location ~ \.(php)?$
{
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
}