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

Allow setting environment variables inside the proxy locations #1061

Merged
merged 1 commit into from
Mar 14, 2015

Conversation

stevenpost
Copy link

This patch adds support to set variables using 'SetEnv' inside proxy
locations. This is needed to support some backends that don't properly
support HTTP/1.1, as it allows a fallback by the Apache httpd server.
For details see [1](Apache httpd documentation) and [2](use case).

[1] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#envsettings
[2] https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache

@@ -1335,12 +1335,14 @@ apache::vhost { 'site.name.fdqn':
'params' => { 'retry' => '0', 'timeout' => '5' }, },
{ 'path' => '/e', 'url' => 'http://backend-a/e',
'keywords' => ['nocanon', 'interpolate'] },
{ 'path' => '/f', 'url' => 'http://backend-f/', 'setenv' => ['proxy-nokeepalive 1','force-proxy-request-1.0 1']},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please insert a break here for readability

@igalic
Copy link
Contributor

igalic commented Mar 12, 2015

looks much betterer now!
thanks for the update.

@stevenpost
Copy link
Author

squashed the commits into a single patch

@stevenpost
Copy link
Author

Hi,

Do you know why this test fails on travis, only for some environments? https://travis-ci.org/puppetlabs/puppetlabs-apache/builds/54071349

The build is from before the squash, but no actual changes are made with the squash.

@stevenpost
Copy link
Author

nevermind, I see it... the other environments are just taking longer, I made an error in one of the tests, will push an update.

This patch adds support to set variables using 'SetEnv' inside proxy
locations. This is needed to support some backends that don't properly
support HTTP/1.1, as it allows a fallback by the Apache httpd server.
For details see [1] (Apache httpd documentation) and [2] (use case).

[1] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#envsettings
[2] https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
igalic added a commit that referenced this pull request Mar 14, 2015
Allow setting environment variables inside the proxy locations
@igalic igalic merged commit 6c78b79 into puppetlabs:master Mar 14, 2015
@stevenpost stevenpost deleted the feature/proxy_setenv branch March 16, 2015 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants