48 lines
999 B
Nginx Configuration File
48 lines
999 B
Nginx Configuration File
|
worker_processes 1;
|
||
|
error_log logs/error.log debug;
|
||
|
|
||
|
events {
|
||
|
worker_connections 256;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
default_type application/octet-stream;
|
||
|
sendfile on;
|
||
|
#tcp_nopush on;
|
||
|
keepalive_timeout 65;
|
||
|
tcp_nodelay on;
|
||
|
|
||
|
gzip on;
|
||
|
gzip_min_length 1100;
|
||
|
gzip_buffers 4 8k;
|
||
|
gzip_types text/plain;
|
||
|
|
||
|
upstream mongrel {
|
||
|
server 127.0.0.1:3000;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
server_name bh.vim.me localhost susanna brooklyn;
|
||
|
#root /Users/chez/Sites;
|
||
|
#index index.html index.htm;
|
||
|
|
||
|
try_files $uri @mongrel;
|
||
|
|
||
|
location @mongrel {
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header Host $http_host;
|
||
|
proxy_redirect off;
|
||
|
proxy_pass http://mongrel;
|
||
|
}
|
||
|
|
||
|
include proxy.conf;
|
||
|
|
||
|
#error_page 500 502 503 504 /50x.html;
|
||
|
location = /50x.html {
|
||
|
root html;
|
||
|
}
|
||
|
}
|
||
|
}
|