Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit ec0f699

Browse files
authored
Merge pull request #63 from skerschb/DOCSP-8279
Docsp 8279
2 parents 8014bbb + 9d07f16 commit ec0f699

File tree

3 files changed

+13
-64
lines changed

3 files changed

+13
-64
lines changed

makefiles/Makefile.docs-node

Lines changed: 0 additions & 64 deletions
This file was deleted.

scripts/vcl/catch.vcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare local var.mapUrl STRING;
2+
set var.mapUrl = regsuball(req.url.path, "/core/", "");
3+
4+
if (table.lookup(redirect_map, var.mapUrl)) {
5+
error 718 "redirect";
6+
}

scripts/vcl/catcherror.vcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (obj.status == 718 && obj.response == "redirect") {
2+
set obj.status = 308;
3+
declare local var.mapUrl STRING;
4+
set var.mapUrl = regsuball(req.url.path, "/core/", "");
5+
set obj.http.Location = table.lookup(redirect_map, var.mapUrl);
6+
return (deliver);
7+
}

0 commit comments

Comments
 (0)