puppet-standalone-mashup/shared/additional-modules/nginx/templates/nginx.conf
2012-02-28 15:07:55 -05:00

42 lines
982 B
Nginx Configuration File

user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid <%= pid_file %>;
events {
worker_connections 1024;
}
http {
include /usr/local/nginx/conf/mime.types;
default_type application/octet-stream;
upstream php {
server unix:/tmp/php-cgi.socket;
server 127.0.0.1:9000;
}
access_log /var/log/nginx/access.log;
sendfile on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript text/xml
application/xml application/xml+rss text/javascript;
passenger_root /usr/local/ruby/lib/ruby/gems/1.9.1/gems/passenger-<%= version %>;
passenger_ruby /usr/local/ruby/bin/ruby;
passenger_max_pool_size <%= max_pool_size %>;
passenger_max_instances_per_app 2;
include /etc/nginx/fastcgi.conf;
include /etc/nginx/sites-enabled/*;
}