<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Hi there,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I tried to use ngx_cache_purge with the configuration below</div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> location ~ /purge(/.*) { </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> allow 127.0.0.1;</font></div><div style="background-color: transparent;"><font
face="times new roman, new york, times, serif"> deny all;</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> proxy_cache_purge one backend$request_uri;</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> }</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> location ~* ^.+\.(css|js)$ {
</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> proxy_pass http://backend; </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> proxy_cache two;
</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> proxy_cache_key backend$request_uri; </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> proxy_cache_valid 200 1h;
</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> proxy_cache_valid 404 1m; </font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times
new roman, new york, times, serif">Then when I tried to open by browser with url http://myurl/purge/style.css, it's saying Page not Found (404)</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><font face="times new roman, new york, times, serif">Is there any something I've missed?</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style:
normal;"><br></div></div></body></html>