I really felt in love with Nginx I am using it and experimenting with it.
As I already said in a previouse post about Compiling Nginx with gzip_static, one of the features I like the most is the gzip_static.
Nginx can serve gzipped content in two ways.
I have an nginx instance built with the gzip_static module
nginx version: nginx/1.2.6
built by gcc 3.4.6 20060404 (Red Hat 3.4.6-11)
TLS SNI support disabled
configure arguments: --prefix=/home/nginx --user=nginx --group=nginx
--without-http_autoindex_module --without-http_empty_gif_module
--without-http_scgi_module --with-http_ssl_module
--with-http_gzip_static_module --with-pcre=./library/pc
Nginx is a web server / proxy server, according to Wikipedia, this is the description:
I have gzip enabled on nginx 1.2.8, but for some reason, it is not gzipping anything.
Nginx install info:
nginx version: nginx/1.2.8
built by gcc 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx-1.2.8 --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --with-pcre --conf-path=/etc/nginx/nginx.conf --add-modul
From what I've read both NGINX and OS will cache static files being served in memory. Is there a way to set how much RAM NGINX is allowed to use? My web server will be exclusively serving a large amount of ephemeral static files from disk and I want these to be served from RAM when possible.
I also saw a post that claimed reading from disk will block an entire nginx worker. Is this true?
Serving CGI Scripts With Nginx On Debian Squeeze/Ubuntu 11.04
This tutorial shows how you can serve CGI scripts (Perl scripts) with
nginx on Debian Squeeze/Ubuntu 11.04. While nginx itself does not serve
CGI, there are several ways to work around this.
Serving CGI Scripts With Nginx On Ubuntu 12.04
This tutorial shows how you can serve CGI scripts (Perl scripts) with
nginx on Ubuntu 12.04. While nginx itself does not serve CGI, there are
several ways to work around this.
I have added a X-Accel-Expires header on my static contents as well as a Last-Modified header.
I would like to know whats the correct setting to cache those elements without caching anything else.
This is what I have at the moment but it doesn't cache anything :
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
client_max_body_size 2000m;
k
How can gzip be turned off for a particular location and all its sub-directories? My main site is at http://mydomain.com and I want to turn gzip off for both http://mydomain.com/foo and http://mydomain.com/foo/bar.
I tried turning off gzip as shown below, but the Response Headers in Chrome's dev tools shows that Content-Encoding:gzip.