Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabled variable is not merged in location configuration #63

Open
laharikommi1 opened this issue Apr 25, 2019 · 0 comments
Open

enabled variable is not merged in location configuration #63

laharikommi1 opened this issue Apr 25, 2019 · 0 comments

Comments

@laharikommi1
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant