Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

unknown directive "dyups_interface" #138

Open
huzhewei opened this issue Jun 11, 2020 · 3 comments
Open

unknown directive "dyups_interface" #138

huzhewei opened this issue Jun 11, 2020 · 3 comments

Comments

@huzhewei
Copy link

./configure --with-luajit --with-http_realip_module --add-module=./ngx_http_dyups_module
make install成功后,在location中使用dyups_interface,却显示unknown directive "dyups_interface"。
请问是什么问题?

@zhangzonghai
Copy link

我也是这个问题

@xujingbin
Copy link

http://tengine.taobao.org/document_cn/http_dyups_cn.html
下载tengine源码,编译的时候加上--add-module=modules/ngx_http_upstream_dyups_module就可以了

@forleeds
Copy link

forleeds commented Jul 22, 2020

请问大佬们是否遇见dyups模块和 rewrite 的break规则不兼容的问题,如:

location /test/ {
        rewrite /test/(.*)$ /$1 break;
        proxy_redirect off;
        proxy_connect_timeout 30;
        proxy_read_timeout 180;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        set $core_nginx core-nginx;
        proxy_pass http://$core_nginx;
    }

上面这样直接报错500,而将break换成last则正常

location /test/ {
        rewrite /test/(.*)$ /$1 last;
        proxy_redirect off;
        proxy_connect_timeout 30;
        proxy_read_timeout 180;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        set $core_nginx core-nginx;
        proxy_pass http://$core_nginx;
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants