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

Setting a Host header with more_set_headers not working #139

Closed
arianf opened this issue Aug 30, 2022 · 1 comment
Closed

Setting a Host header with more_set_headers not working #139

arianf opened this issue Aug 30, 2022 · 1 comment

Comments

@arianf
Copy link

arianf commented Aug 30, 2022

This is not working for me.

location /api/bar {
  more_set_headers 'Host: api.bar.com';
  proxy_pass https://rn-bar_443_api/;
}

However, this works just fine

location /api/bar {
  proxy_set_header Host api.bar.com;
  proxy_pass https://rn-bar_443_api/;
}

Does more headers not work with the Host header?

@arianf
Copy link
Author

arianf commented Aug 30, 2022

Duplicate of #129

@arianf arianf closed this as completed Aug 30, 2022
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