Skip to content

python_access inside if block #6

Description

@coleplx

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. :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions