Welcome! Log In Create A New Profile

Advanced

Dynamic http upstream based on Host-Header an DNS/LDAP lookup

Marten Lehmann
May 11, 2010 10:18PM
Hello,

I studied the documentation of NginxHttpUpstreamModule, NginxHttpProxyModule,
NginxHttpMemcachedModule and NginxMailAuthModule in the nginx wiki and each
module does partially what I need, but none of them completely.

This is my idea: I want to route HTTP requests to certain backends according
to the host header of the request. The domain of the host header shall be used
to lookup the backend/upstream IP-address by DNS or LDAP and set it as
proxy_pass target. To prevent frequent lookups of the domains in every HTTP
request, the lookups shall be cached with memcached. So in short, I want to
built a dynamic proxy/upstream routing for mass hosting and later SSL
offloading, too.

Does any nginx module exist that I haven't get to know yet, but that is
suitable for this task? Or should I think about extending the
NginxHttpProxyModule for dynamic proxy_pass lookups and memcached-caching?

Kind regards
Marten



_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Dynamic http upstream based on Host-Header an DNS/LDAP lookup

Marten Lehmann 3649 May 11, 2010 10:18PM

Re: Dynamic http upstream based on Host-Header an DNS/LDAP lookup

replay 1500 May 11, 2010 10:22PM

Re: Dynamic http upstream based on Host-Header an DNS/LDAP lookup

Marten Lehmann 1372 May 17, 2010 02:18PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready