Does nginx support openstack swift API?
hewanxiang at gmail.com
Fri May 30 07:20:25 UTC 2014
On Thu, May 29, 2014 at 8:25 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> On Thu, May 29, 2014 at 07:04:46PM +0800, Andy wrote:
> > Hello guys,
> > I'm trying to find a way to use OpenStack SWIFT with nginx, the below are
> > request steps:
> > 1. nginx is configured as proxy cache
> > 2. client send a request to nginx for url:
> > 3. nginx received the request and it is a cache miss, it need to fetch
> > content from SWIFT proxy server
> > 4. nginx send a request to swift proxy server for authentication, the url
> > looks like http://swift-proxy/auth-account, account information is set
> > header, the response from swift proxy server contains a auth-token for
> > account if authentication success.
> > 5. then nginx use this auth-token and put it in a new request header, and
> > send the new request to the swift proxy server for the original request
> > content, there could be a map between client request url to the swift
> > url, for example, /filename.txt --> /account/container/filename.txt, so
> > new requst url could be
> > plus the auth-token.
> > 6. swift proxy sever response the content to nginx, then nginx cache the
> > content and pass the response to the client.
> > Could the above requirement be accomplished by some specific
> > plus some existing nginx modules?
> Looks like something more or less possible with auth_request, see
Thanks, it works after some configuration changes.
> Maxim Dounin
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx