Varnish 멀티도메인 설정

Configure multiple sites with Varnish
Varnish 멀티도메인 설정
바니시 멀티도메인 설정

1 예시[편집]

도메인 백엔드서버
도메인1.com 웹서버1
도메인2.com 웹서버2
 backend mywebserver1 {
     .host = "웹서버1주소";
     .port = "8080";
 }
 backend mywebserver2 {
      .host = "웹서버2주소";
      .port = "8080";
 }
 sub vcl_recv {
    if (req.http.host == "도메인1.com") {
        set req.http.host = "웹서버1주소";
        set req.backend = mywebserver1;
        return (lookup);
    }
    if (req.http.host == "도메인2.com") {
        set req.http.host = "웹서버2주소";
        set req.backend = mywebserver2;
        return (lookup);
    }
 }

2 같이 보기[편집]

3 참고[편집]

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