1 개요[ | ]
- Configure varnish to pipe all subdomains
- Varnish 서브도메인 그대로 넘기기
- Varnish 포트만 바꿔 연결하기
- 다음과 같이 도메인을 그대로 넘기고 싶은 경우
- example.com:6081 → example.com:8080
- hello.example.com:6081 → hello.example.com:8080
- world.example.com:6081 → world.example.com:8080
tcl
Copy
backend default {
.host = "127.0.0.1";
.port = "8080";
}
sub vcl_recv {
set req.backend_hint = default;
return( pipe );
}
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote 127.0.0.1 Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.