Open psulowicz opened 7 years ago
Successfully purged with nginx 1.13.3
root@something:~# curl -i -X DELETE -H "Host: cdn.domain.test" localhost/files/file.txt
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 10 Oct 2017 07:13:36 GMT
Content-Type: text/html
Content-Length: 282
Connection: keep-alive
<html>
<head><title>Successful purge</title></head>
<body bgcolor="white">
<center><h1>Successful purge</h1>
<br>Key : 248455226:0:/files/file.txt
<br>Path: /var/cache/nginx/8/c9/8890acdc10c07a1130c4d2337132cc98
</center>
<hr><center>nginx/1.13.3</center>
</body>
</html>
Before adding this patch
root@something:~# curl -i -X DELETE -H "Host: cdn.domain.test" localhost/files/file.txt
HTTP/1.1 502 Bad Gateway
Server: nginx
Date: Tue, 10 Oct 2017 06:58:08 GMT
Content-Type: text/html
Content-Length: 166
Connection: keep-alive
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
@PiotrSikora Would it be possible to merge?
In nginx 1.12.2, I found the "separate location syntax" does not work, could anybody confirm?
When configuring with separate location syntax, I always get 404, seem it does not honor the "separate location" at all.
This patch worked with 1.14.0. @PiotrSikora Could you please merge it?
It works great with nginx version 1.12.0