"Varnish HTTP to HTTPS 넘겨주기"의 두 판 사이의 차이

잔글 (Jmnote님이 Varnish HTTP→HTTPS 넘겨주기 문서를 Varnish HTTP to HTTPS 리다이렉션 문서로 이동했습니다)
19번째 줄: 19번째 줄:


==같이 보기==
==같이 보기==
* [[Varnish www도메인 넘겨주기]]
* [[HTTP to HTTPS 리다이렉션]]
* [[HTTP to HTTPS 리다이렉션]]
* [[Varnish www도메인 넘겨주기]]


==참고==
==참고==

2018년 7월 17일 (화) 07:48 판

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 }}