FRiCKLE/ngx_cache_purge

403 Forbidden response from NGINX

seedhunt opened this issue · 4 comments

I'm NGINX Newbie.
There are no NGINX experts around me, I desperately need your help.

I compiled NGINX with the purge module.
I configured 'proxy_cache_purge PURGE from 127.0.0.1;' in location area named abc.com Server.

After request a sample.mp4 file, I executed curl but got a 403 response in localhost.

root@cdnlxnginx02:/etc/nginx/conf.d# curl -X PURGE -I http://abc.com/sample.mp4
HTTP/1.1 403 Forbidden
Server: nginx/1.17.0
Date: Mon, 09 Dec 2019 01:44:09 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 153
Connection: keep-alive

Can you help me how to purge running normally?
Thank you.

have you solved the problem? I got the same problem

i got same problem too, pls check this problem

Hello,
I have the same problem.
How can I debug this

I was resolve this problem. I was complie ngx_cache_purge from source from bellow acticle
https://github.com/torden/ngx_cache_purge
my nginx version 1.19.2