worker_processes 10; error_log @nginx_log@/error.log; events { worker_connections 1024; } http { proxy_temp_path @nginx_spool@/tmp/proxy; fastcgi_temp_path @nginx_spool@/tmp/fastcgi; client_body_temp_path @nginx_spool@/tmp/client; include @nginx_etc@/mime.types; default_type application/octet-stream; sendfile on; gzip on; # text/html don't need to be defined there, it always compressed gzip_types text/plain text/css text/xml application/x-javascript application/atom+xml; # gzip_comp_level 9; server { listen localhost:80; server_name .*; location / { root /var/www/html; # autoindex off; # autoindex_exact_size on; # autoindex_localtime off; # expires off; # cooperate with mod_realip in apache-1.3 or mod_rpaf in apache-2.x # proxy_redirect off; # proxy_set_header Host $host; # proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Forwarded-For $remote_addr; # proxy_pass http://127.0.0.1/; } # charset on; # source_charset koi8-r; access_log @nginx_log@/access.log; } }