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
Pass header to upstream #565
Comments
There is no such setting, and I believe there is generally no need to so such thing. You can modify the value sent by Or do you want to modify other headers? If so, can you name them and explain why? |
Thanks for your answer. In fact my use case is a multi-site php installation using hhvm running in proxygen mode (the integrated web server). There is a mapping between hostnames and directories: host1->dir1, host2->dir2, etc..
And in my main index.php, I use the header "Site-Directory" to know what is the root dir of the current site, and I don't need to store in another place the map between host_i and dir_i. |
@yaslama Thank you for the clarification. Understood. Will consider how I should provide a way to tweak the request headers sent to backend. |
As covered in the test implemented in #666, it is now possible to use mruby handler's https://github.com/h2o/h2o/blob/94a4aa2/t/50mruby-http-request.t#L47-L60 would be a good place to look at how it can be done. Please note that the API is subject to change until we release 1.7.0. Also, the documentation will be available at time of the release. |
Hi,
I didn't find how to pass header to upstream like proxy_set_header in nginx (or fastcgi_param). Did I miss something ?
The text was updated successfully, but these errors were encountered: