Skip to content

HTTP: transform custom HTTP headers #511

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

Closed
krizhanovsky opened this issue May 25, 2016 · 0 comments · Fixed by #872
Closed

HTTP: transform custom HTTP headers #511

krizhanovsky opened this issue May 25, 2016 · 0 comments · Fixed by #872
Assignees
Milestone

Comments

@krizhanovsky
Copy link
Contributor

krizhanovsky commented May 25, 2016

Web-server mode (#471) requires setting of custom HTTP headers. Cache-Control, Expires and other similar server headers can be generated on this basis only. The feature is also useful for various proxy cache use cases.

The new configuration option must be added:

    hdr_add <header name> <header value>

Configuration example from #471:

    vhost tempesta-tech {
            location "?" {
                proxy_pass heavy;
                cache_fulfill;
                hdr_add Cache-Control "no-cache";
            }
            index   index.html;
            root_db /opt/tempesta/db/www_tt.tdb;
            hdr_add Expires "Thu, 15 Apr 2020 20:00:00 GMT"
    }

Moreover, proxy mode also requires adjustment of arbitrary HTTP headers, see for example Nginx's proxy_set_header.

Don't forget to develop appropriate functional test and update Wiki.

@krizhanovsky krizhanovsky added this to the 0.5.0 Web Server milestone May 25, 2016
@krizhanovsky krizhanovsky changed the title HTTP: adding custom HTTP headers HTTP: transform custom HTTP headers Jun 18, 2017
@krizhanovsky krizhanovsky modified the milestones: 1.0 Web Server, 0.5 alpha Jan 9, 2018
@krizhanovsky krizhanovsky modified the milestones: 1.0 Tempesta OS, 0.5 alpha Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants