2010-12-29 02:11:51 +00:00
|
|
|
worker_processes 1;
|
2010-12-30 02:17:41 +00:00
|
|
|
error_log __ROOT__/error.log;
|
|
|
|
pid __ROOT__/server.pid;
|
2010-12-29 02:11:51 +00:00
|
|
|
daemon off;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 4096;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
2010-12-30 02:17:41 +00:00
|
|
|
include __ROOT__/mime.types;
|
2010-12-29 02:11:51 +00:00
|
|
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] $status '
|
|
|
|
'"$request" $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
autoindex on;
|
|
|
|
|
|
|
|
server {
|
2010-12-30 02:17:41 +00:00
|
|
|
listen __HTTP_PORT__;
|
2010-12-29 02:11:51 +00:00
|
|
|
server_name localhost;
|
|
|
|
access_log access.log main;
|
2010-12-30 02:17:41 +00:00
|
|
|
root __ROOT__/html;
|
2010-12-29 02:11:51 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.html index.txt index.php;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
include fastcgi_params;
|
2010-12-30 02:17:41 +00:00
|
|
|
fastcgi_pass 127.0.0.1:__PHP_FCGI_PORT__;
|
2010-12-29 02:11:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# vim:filetype=nginx
|