Poor performance in serving of static files

Jürg Lehni lists at scratchdisk.com
Mon Jul 18 06:03:03 UTC 2011


You are right, so here it is:

The same site running on Nginx:

http://lineto.com:81/The+Fonts/Font+Categories/Text+Fonts/Akkurat/Normal/

nginx -V
nginx: nginx version: nginx/1.0.4
nginx: TLS SNI support enabled
nginx: configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_perl_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-development-kit --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-upstream-fair --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-echo --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-lua --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-http-push --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-upload-progress --add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debian/modules/nginx-secure-download

nginx.conv:

user www-data;
worker_processes 2;
pid /var/run/nginx.pid;

events {
	use epoll;
	worker_connections 1024;
}

http {
	sendfile on;
	tcp_nopush on;
	keepalive_timeout 65;
	types_hash_max_size 2048;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log error;

	gzip on;
	gzip_disable "msie6";

	gzip_vary on;
	gzip_proxied any;
	gzip_comp_level 6;
	gzip_buffers 16 8k;
	gzip_http_version 1.1;
	gzip_min_length 1100;
	gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

--

Jürg

On 18 Jul 2011, at 01:24, Ensiferous wrote:

> You paste really doesn't contain anything interesting at all.
> 
> Here's things that may help us help you:
> - Your entire config file
> - The output of nginx -V
> - A live website actually running on Nginx (doesn't have to be port 80)
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212499,212500#msg-212500
> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list