Created
January 24, 2013 04:06
-
-
Save khmer/4617546 to your computer and use it in GitHub Desktop.
nginx 1.2.6
This file contains hidden or 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 nginx nginx; | |
| worker_processes 2; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| client_max_body_size 128M; | |
| 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; | |
| keepalive_timeout 65; | |
| gzip on; | |
| gzip_comp_level 6; | |
| gzip_vary on; | |
| gzip_proxied any; | |
| gzip_disable "MSIE [1-6].(?!.*SV1)"; | |
| gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
| fastcgi_cache_path /var/www/nginx_cache levels=1:2 keys_zone=czone:10m max_size=50m inactive=120m; | |
| fastcgi_temp_path /var/www/nginx_tmp; | |
| server_tokens off; | |
| pagespeed on; | |
| pagespeed RewriteLevel CoreFilters; | |
| # needs to exist and be writable by nginx | |
| pagespeed FileCachePath /home/username/nginx_pagespeed/; | |
| pagespeed EnableFilters insert_ga,trim_urls; | |
| include /etc/nginx/conf.d/*.conf; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment