Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with nginx-1.11.6+ #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

psulowicz
Copy link

No description provided.

@nerux1
Copy link

nerux1 commented May 31, 2017

It works great with nginx version 1.12.0

@zakiharis
Copy link

zakiharis commented Oct 10, 2017

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>

@szepeviktor
Copy link

@PiotrSikora Would it be possible to merge?

@July-G
Copy link

July-G commented Apr 28, 2018

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.

@jiajunsu
Copy link

jiajunsu commented Jun 7, 2018

This patch worked with 1.14.0.
@PiotrSikora Could you please merge it?

* Fix compatibility with nginx 1.19.3+

* Changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants