Friday, March 19, 2010

working nginx 0.8.34 config

# egrep -v '#|^$' conf/nginx.conf
user g;
worker_processes 1;
error_log logs/error.log;
pid logs/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;
keepalive_timeout 65;
server {
listen 192.168.1.119:80 default_server;
server_name _;
return 444;
}
server {
listen 192.168.1.119:80;
server_name www.gavrig.org;
access_log logs/www.gavrig.org.access.log main;
location / {
root html/gavrig;
index index.html index.htm;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 192.168.1.119:80;
server_name www.thoughts.org;
access_log logs/www.thoguhts.org.access.log main;
location / {
root html/thoughts;
index index.html index.htm;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}

No comments: