FRiCKLE / ngx_cache_purge

nginx module which adds ability to purge content from FastCGI, proxy, SCGI and uWSGI caches.
http://labs.frickle.com/nginx_ngx_cache_purge/
Other
1.06k stars 311 forks source link

403 Forbidden response from NGINX #70

Open seedhunt opened 4 years ago

seedhunt commented 4 years ago

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.

maunier commented 4 years ago

have you solved the problem? I got the same problem

vidocq1102 commented 3 years ago

i got same problem too, pls check this problem

triauto commented 3 years ago

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

vidocq1102 commented 3 years ago

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