You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this awesome module and also lua-nginx-module.
I've been trying to work with lua-upstream-nginx-module to create a redirect model inside nginx configuration, in that model, I would like to redirect user to backend address using 301 or 302 response instead of proxy-ing them.
Now I am able to redirect user, all is ok except nginx resolves backend address into ip address which is not necessary in my case.
For example I have configuration below:
upstream {
server abc.com;
server def.com
}
When using upstream-nginx-module, I want to be able to get_upstream_name() will return name=abc.com instead of IP addresses of abc.com.
is it possible? Can you make that api available?
Thanks,
The text was updated successfully, but these errors were encountered:
Hello @agentzh ,
Thank you for this awesome module and also lua-nginx-module.
I've been trying to work with lua-upstream-nginx-module to create a redirect model inside nginx configuration, in that model, I would like to redirect user to backend address using 301 or 302 response instead of proxy-ing them.
Now I am able to redirect user, all is ok except nginx resolves backend address into ip address which is not necessary in my case.
For example I have configuration below:
upstream { server abc.com; server def.com }
When using upstream-nginx-module, I want to be able to get_upstream_name() will return name=abc.com instead of IP addresses of abc.com.
is it possible? Can you make that api available?
Thanks,
The text was updated successfully, but these errors were encountered: