Varnish HTTP to HTTPS 넘겨주기

1 개요[ | ]

Varnish HTTP to HTTPS redirection
Varnish HTTP to HTTPS 리다이렉션
sub vcl_recv {
    if (std.port(local.ip) == 80) {
        return (synth(700));
    }
}
sub vcl_synth {
    if (resp.status == 700) {
        set resp.http.location = "https://" + req.http.host + req.url;
        set resp.status = 302;
        return (deliver);
    }
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}