Created
August 18, 2012 08:24
-
-
Save yangtheman/3385289 to your computer and use it in GitHub Desktop.
/etc/nginx/nginx.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 10; | |
pid /var/run/nginx.pid; | |
events | |
{ | |
worker_connections 1024; | |
} | |
http | |
{ | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay off; | |
gzip on; | |
gzip_http_version 1.0; | |
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; | |
# configure log format like to Apache's "combined" log format | |
log_format main | |
'$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_cookie"'; | |
# default log files | |
error_log /mnt/nginx/logs/error.log notice; | |
access_log /mnt/nginx/logs/access.log main; | |
include /etc/nginx/rubber/*.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment