Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

EZP-24854 EZP-26087 Update varnish configuration to purge required lo… - #32

Closed
benoitvidis wants to merge 1 commit into
ezsystems:masterfrom
benoitvidis:ezp-26087-varnish-purge-and-multiple-locations
Closed

benoitvidis wants to merge 1 commit into
ezsystems:masterfrom
benoitvidis:ezp-26087-varnish-purge-and-multiple-locations

Conversation

@benoitvidis

Copy link
Copy Markdown

…cations only

cf https://jira.ez.no/browse/EZP-26087

The current implementation of varnish ban allows only one Location ID to be set in the X-Location-Id Header.

The proposal is to:

  1. update default varnish configuration (this PR)
  2. revert ezsystems/ezpublish-kernel@12353b4


if (req.http.X-Location-Id) {
ban("obj.http.X-Location-Id ~ " + req.http.X-Location-Id);
ban("obj.http.X-Location-Id ~ \b" + req.http.X-Location-Id) + "\b";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like a typo, the + "\b" should be inside the parenthesis of the ban function.

@joaoinacio

Copy link
Copy Markdown
Contributor

Hi,
Besides my comment this looks OK AFAICT , a couple things:

  • It's possible to add the git revert here,
  • The PR should probably be against ezplatorm 1.4, I believe, then ported.

Also it has the potential to cause a regression if varnish config is not updated, so would definitely NEED a warning in update notes.

ping @andrerom

@andrerom

Copy link
Copy Markdown
Contributor

It should indeed go to ezplatform repository, against 1.4 branch, and then we'll merge it in here.

@lserwatka

Copy link
Copy Markdown
Member

@andrerom I will take care about pulling this changes from ezplatform to ezstudio meta. I'm closing this one. @benoitvidis could you open this PR against ezsystems/ezplatform repository so that we can merge it to ezstudio?

@lserwatka lserwatka closed this Jul 18, 2016
@benoitvidis

Copy link
Copy Markdown
Author

Sure.
Here it is: ezsystems/ezplatform#128

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants