Fix varnish PURGE requests
These are used by the wiki to purge updated pages Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
101a8fb00f
commit
621c373b17
1 changed files with 15 additions and 25 deletions
|
@ -124,33 +124,23 @@ backend mirrormanager2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#acl purge {
|
acl purge {
|
||||||
# "192.168.1.3";
|
"192.168.1.129"; // wiki01.vpn
|
||||||
# "192.168.1.4";
|
"192.168.1.130"; // wiki02.vpn
|
||||||
# "192.168.1.5";
|
"10.5.126.60"; // wiki01.stg
|
||||||
# "192.168.1.6";
|
"10.5.126.63"; // wiki01
|
||||||
# "192.168.1.13";
|
"10.5.126.73"; // wiki02
|
||||||
# "192.168.1.24";
|
"10.5.126.23"; // lockbox01
|
||||||
# "192.168.1.23";
|
"192.168.1.58"; //lockbox01.vpn
|
||||||
# "192.168.1.41";
|
}
|
||||||
# "10.5.126.31";
|
|
||||||
# "10.5.126.32";
|
|
||||||
# "10.5.126.33";
|
|
||||||
# "10.5.126.34";
|
|
||||||
# "10.5.126.37";
|
|
||||||
# "10.5.126.38";
|
|
||||||
#}
|
|
||||||
|
|
||||||
sub vcl_recv {
|
sub vcl_recv {
|
||||||
# if (req.request == "PURGE") {
|
if (req.method == "PURGE") {
|
||||||
# if (!client.ip ~ purge) {
|
if (!client.ip ~ purge) {
|
||||||
# error 405 "Not allowed.";
|
return (synth(405, "Not allowed"));
|
||||||
# }
|
}
|
||||||
# if (req.url ~ "^http://") {
|
return(purge);
|
||||||
# set req.url = regsub(req.url, "http://localhost:6081","");
|
}
|
||||||
# }
|
|
||||||
# purge_url(req.url);
|
|
||||||
# }
|
|
||||||
|
|
||||||
if (req.url ~ "^/wiki/") {
|
if (req.url ~ "^/wiki/") {
|
||||||
set req.backend_hint = wiki;
|
set req.backend_hint = wiki;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue