Skip to content

enabled variable is not merged in location configuration #63

@laharikommi1

Description

@laharikommi1

I configured 'aws_sign' in my server block and I'm getting a 403 error since the ngx_http_aws_proxy_sign function is returning NGX_DECLINED since conf->enabled is 0.

When I move the 'aws_sign' configuration to the location block, the request is being sent sucessfully.

Upon further debugging, I found that the enabled variable from server block is not being merged to the location configuration.

The directive declaration has 'NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF'.
Can anyone help me understand why the ngx_http_aws_auth_merge_loc_conf() function is not merging conf->enabled ?

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