Skip to content

how write if block like in nginx for nginx unit with php #989

Closed Answered by lcrilly
allanian asked this question in Support
Discussion options

You must be logged in to vote

Yup, we can do that with this routes object :)

[
    {
        "match": {
            "uri": ["*api_v2*", "*api_v3*"]
        },
        "action": {
            "share": "/var/www/old/public$uri"
        }
    },
    {
        "action": {
            "share": "/var/www/new/public$uri"
        }
    }
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@allanian
Comment options

Answer selected by lcrilly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #988 on November 01, 2023 20:47.