Those who do not want to build Nginx from source to get Nginx Cache Purge Module Can Test Official apt or yum version of nginx-extras version. Usually while writing tutorials we write for deb GNU/Linux and give instruction to install nginx-full instead of only nginx i.e. – apt-get install nginx-full
instead of apt-get install nginx
. Basically we have not seen any difference in performance between nginx-full, nginx-light and nginx with our availble minimum RAM (1GB on HP Cloud).
Nginx Cache Purge With nginx-extras : What Are the Differences Among These Versions?
There can be trouble with nginx-naxsi. nginx-naxsi has/had cache-purge third party module. For at least current Ubuntu official repository, if you run this command :
1 | apt-cache depends nginx | tail -n+2 | cut -d: -f 2 | sort -u |
You will get nginx-extras
, nginx-full
and nginx-light
---
Technically nginx-extras
should get the cache-purge
third party module. This is not from our production server but it is up to date :
To see nginx-naxsi, you can to run this command :
1 | dpkg -s nginx |
On Debian nginx-extras, we are getting these :
1 2 3 4 5 | $ nginx -V nginx version: nginx/1.4.6 (Ubuntu) built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1) TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --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_mp4_module --with-http_perl_module --with-http_random_index_module --with-http_secure_link_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.4.6/debian/modules/headers-more-nginx-module --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-cache-purge --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-dav-ext-module --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-development-kit --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.4.6/debian/modules/ngx-fancyindex --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-http-push --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-lua --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-upload-progress --add-module=/build/buildd/nginx-1.4.6/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.4.6/debian/modules/ngx_http_substitutions_filter_module |
Comparison is written here on Debian Wiki :
1 2 | https://wiki.debian.org/Nginx # copy the URL to a text editor first |
Nginx Cache Purge With nginx-extras : What Will Happen if Cache-Purge Missing or How I Will Upgrade?
If there is no cache-purge
, the cache-purge
will not work! You need to follow one of these four :
- Not doing anything
- Building nginx with the needed modules
- Using Nginx Extras
- Using Nginx Plus (Premium Version)
Building Nginx is the best option, next option is using an apt or yum version which has the cache-purge module. On a test instance try each of them. Nginx Plus is not required by all.
Tagged With apt-get install nginx nginx-extras , centos nginx-extras