Hi,
I am referring to https://github.com/FRiCKLE/ngx_cache_purge/ and running
the open source nginx version: nginx/1.20.2 on CentOS Linux release
7.9.2009 (Core). When i trying to compile the ngx_cache_purge_module.c I am
encountering fatal error: nginx.h: No such file or directory
# ls -l
total
Hi Kaushal,
On Sat, May 07, 2022 at 06:31:59PM +0530, Kaushal Shriyan wrote:
>
> #gcc -o ngx_cache_purge_module ngx_cache_purge_module.c
> ngx_cache_purge_module.c:30:19: fatal error: nginx.h: No such file or
> directory
> #include
>^
> compilation terminated.
I'd recommend
Hi Sergey,
I followed
https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/#load_module
to generate the third party dynamic module
Nginx Version :- nginx version: nginx/1.20.1
OS Version :- CentOS Linux release 7.9.2009 (Core)
cd /home/kaushal/ngx-cache-purge/
# ls -l
total 64
-rw-r--
Hi,
I am able to fix the issue below.
#nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] module
"/usr/lib64/nginx/modules/ngx_http_cache_purge_module.so" version 1020002
instead of 1020001 in
/usr/share/nginx/modules/ngx-http-cache-purge-module.conf:1
nginx: configuration file /etc/nginx/nginx.con
Hi Sergey,
I have fixed the issue by adding the below line in main context of
nginx.conf file
load_module modules/ngx_http_cache_purge_module.so;
#cat /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid/var/run/nginx.pid;
*load_mo