server { server_name localhost; listen 80; root /var/www/html/www/localhost/bin; access_log /var/log/nginx/localhost.access.log; error_log /var/log/nginx/localhost.error.log; rewrite ^.*$ /index.php; location ~ \.php$ { include fastcgi_params; fastcgi_param REQUEST_URI $request_uri; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_pass lewp_php:9000; } gzip on; gzip_comp_level 2; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 1100; gzip_buffers 16 8k; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; }