vcl 4.0;
import std;sub vcl_recv
{
if (req.http.host == "www.muslu.org" || req.http.host == "http://www.muslu.org" || req.http.host == "https://www.muslu.org") {
set req.http.location = "https://muslu.org" + req.url;
return (synth(750, "Permanently moved"));
}
}
sub vcl_synth {
if (resp.status == 750) {
set resp.http.location = req.http.location;
set resp.status = 301;
return (deliver);
}
}
Varnish
hakkında diğer konular