# Re: Nginx upload module (v 2.2.0) :: 502 Bad Gateway

**URL:** <https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211477>\
**Category:** NGINX\
**Created:** [September 5, 2011, 10:39am UTC](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211477 "2011-09-05T10:39:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 5, 2011, 10:39am UTC](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211477/1 "2011-09-05T10:39:05Z")

</div>

Your problem is that in your conf file /test location is going to some  
no  
existent back end

Either deal with it inside nginx or have some back end listening to  
8080.

That is the directive causing the problem

Guillermo  
Ps sorry for top posting (bb issue)

---

<div class="post-metadata">

**Author:** ![Guillermo\_Garron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e47c2d/32.png) [@Guillermo\_Garron](https://www.ruby-forum.com/u/Guillermo_Garron)\
**Post date:** [September 5, 2011, 10:55am UTC](https://www.ruby-forum.com/t/re-nginx-upload-module-v-2-2-0-502-bad-gateway/211477/2 "2011-09-05T10:55:12Z")

</div>

> Your problem is that in your conf file /test location is going to  
> some no  
> existent back end
> 
> Either deal with it inside nginx or have some back end listening to  
> 8080.
> 
> That is the directive causing the problem

xserver:/usr/local/nginx/conf# tshark -i lo port 8080  
Running as user “root” and group “root”. This could be dangerous.  
Capturing on lo  
0.000000 127.0.0.1 → 127.0.0.1 TCP 50768 \> http-alt [SYN]  
Seq=0 Win=32792 Len=0 MSS=16396 TSV=340033941 TSER=0 WS=7  
0.000039 127.0.0.1 → 127.0.0.1 TCP http-alt \> 50768 [RST, ACK]  
Seq=1 Ack=1 Win=0 Len=0

There is no any service on this port.

I’m not getting the idea what should happend on ‘location @test’. Maybe  
in this place the file should be saved in the specyfic location? If yes,  
how this should be configured?

–  
best regards  
Piotr P.
