$ git clone git://github.com/yzprofile/ngx_http_dyups_module.git # to compile as a static module$ ./configure --add-module=./ngx_http_dyups_module # to compile as a dynamic module$ ./configure --add-dynamic-module=./ngx_http_dyups_module
示例配置
http { include conf/upstream.conf; server { listen 8080; location / { # The upstream here must be a nginx variable proxy_pass http://$dyups_host; } } server { listen 8088; location / { return 200 "8088"; } } server { listen 8089; location / { return 200 "8089"; } } server { listen 8081; location / { dyups_interface; } }}