nginx received the request and it is a cache miss, it need to fetch
content from SWIFT proxy server
nginx send a request to swift proxy server for authentication, the
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.
then nginx use this auth-token and put it in a new request header,
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 http://swift-proxy/account/container/filename.txt,
plus the auth-token.
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?
I’m trying to find a way to use OpenStack SWIFT with nginx too. After
your post, I got a solution and try to configure Nginx with
ngx_http_auth_request_module, but what I got is a 401 error. Based on
answer, you have found a solution, Do you mind sharing it? Or any one
the suggestion on how to configure Nginx HTTP Auth Request module to
I am not sure whether this email thread is still active. However, I am
encountering the similar issue you described. Based on your answer, you
found a solution, Do you mind sharing it? Or any one has the suggestion
how to configure Nginx HTTP Auth Request module to accomplish it?
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.