Print
카테고리: [ Nginx ]
조회수: 14468

1. 개요

업스트림 서버의 URL 이름을 IP 주소로 변경하는데 사용하는 DNS 서버를 지정하는 설정이다.


2. 설정

resolver 127.0.0.1 [::1]:5353;

3. 설명


4. Apache HTTP Server

아파치 웹 서버 사용 시에 DNS 캐시가 이슈인 경우가 있다. mod_proxy를 사용하고 있다면 disablereuse 옵션을 사용한다. default는 off이며, on으로 설정한다.

This parameter should be used when you want to force mod_proxy to immediately close a connection to the backend after being used, and thus, disable its persistent connection and pool for that backend. This helps in various situations where a firewall between Apache httpd and the backend server (regardless of protocol) tends to silently drop connections or when backends themselves may be under round- robin DNS. When connection reuse is enabled each backend domain is resolved (with a DNS query) only once per child process and cached for all further connections until the child is recycled. To disable connection reuse, set this property value to On.

disablereuse를 설정하면 각 Connection마다 DNS resolution을 하게 된다. (만약 reuse를 하면 각 child process가 최초 1번만 DNS resolution을 하게 됨)

mod_proxy의 ProxyPass 절에서 max, ttl 옵션 등이 함께 사용될 수 있다.