# Positioning of nginx

**URL:** <https://www.ruby-forum.com/t/positioning-of-nginx/214275>\
**Category:** NGINX\
**Created:** [November 27, 2011, 1:06am UTC](https://www.ruby-forum.com/t/positioning-of-nginx/214275 "2011-11-27T01:06:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 27, 2011, 1:06am UTC](https://www.ruby-forum.com/t/positioning-of-nginx/214275/1 "2011-11-27T01:06:36Z")

</div>

We can deploy a web system like below:

1. HAProxy \<----\>[optinal Varnish] \<-----\>nginx+uWSGI(communicate  
locally)
2. nginx \<------\> uWSGI(or cluster)

as nginx can ‘cache’ and ‘proxy’, the positioning of nginx is confusing  
me.

my questions are:  
1, is it wrong to that nginx talks to uWSGI locally?  
2, is it proper of using nginx to take over haproxy+varnish?

thx
