# Run as FreeBSD www user user www www; worker_processes 3; error_log /var/log/nginx-error.log notice; pid /var/run/nginx.pid; events { worker_connections 1024; use kqueue; } 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"'; access_log /var/log/nginx-access.log main; sendfile on; tcp_nopush on; tcp_nodelay off; #keepalive_timeout 0; keepalive_timeout 65; gzip on; gzip_http_version 1.0; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/html text/css text/xml text/javascript application/x-javascript application/xml application/xml+rss; server { listen 80; root /usr/local/www/nginx-dist; location /nginx_status { access_log off; allow 127.0.0.1; deny all; } # Uncomment if running PHP FastCGI server #location ~ \.php$ { # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /usr/local/www/nginx-dist$fastcgi_script_name; # include fastcgi_params; #} } # A list of additional includes. # See nginx-rails-app.conf.txt for example of included file. include vhosts.conf; }