nginx-python-module icon indicating copy to clipboard operation
nginx-python-module copied to clipboard

python_access inside if block

Open coleplx opened this issue 6 years ago • 0 comments

Hi :)

Why aren't we able to invoke python_access and python_include inside "if" blocks? It works inside a location block, but not on "if".

I ask this because I wrote a simple python script to PURGE slice caches from nginx cache dir, and I'd like to invoke it when the request_method = PURGE. At the moment, this is not possible, so I had to adapt my script do expect requests coming from "$host / purge / $request" instead of PURGE $host / $request only

PS: Thanks for the module. :)

coleplx avatar Sep 27 '19 15:09 coleplx