Opened 5 years ago

Closed 5 years ago

#1761 closed defect (invalid)

Unknown directive "fastcgi_cache_purge"

Reported by: Tam@… Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.15.x
Keywords: fastcgi Cc:
uname -a: Linux 1c55f7b1544d 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 Linux
nginx -V: nginx version: nginx/1.15.8
built by gcc 8.2.0 (Alpine 8.2.0)
built with OpenSSL 1.1.1a 20 Nov 2018
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module

Description

A config using {fastcgi_cache_purge}:

location ~ /purge(/.*) {
    fastcgi_cache_purge gnashdefault "$host$1*";
}

Results in:

2019/04/05 14:55:01 [emerg] 78#78: unknown directive "fastcgi_cache_purge" in /var/www/html/[...].conf

Change History (1)

comment:1 by Maxim Dounin, 5 years ago

Resolution: invalid
Status: newclosed

The fastcgi_cache_purge directive uses different syntax and only available in the commercial subscription, see docs. You probably mean to use a 3rd party one, which is not compiled into nginx you are using.

Note: See TracTickets for help on using tickets.