Multiple conditions for Host

Comments

3 comments

  • Rogier Mulhuijzen

    If I understand your use case correctly, you can just do a single condition with "or", like this:

    req.url ~ "^/api" || req.url ~ "^/explore"

    I hope that helps, let me know if not.

  • Mark Johnson

    Ah. Simple. Cheers drwilco

  • Matt Gillis

    Can also go even cleaner, if ((req.url ~ "(?i)^/(api|explore)")

Please sign in to leave a comment.