# Problem with serving swf files with reverse proxy

**URL:** <https://www.ruby-forum.com/t/problem-with-serving-swf-files-with-reverse-proxy/213372>\
**Category:** NGINX\
**Created:** [October 31, 2011, 4:07pm UTC](https://www.ruby-forum.com/t/problem-with-serving-swf-files-with-reverse-proxy/213372 "2011-10-31T16:07:21Z")\
**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:** [October 31, 2011, 4:07pm UTC](https://www.ruby-forum.com/t/problem-with-serving-swf-files-with-reverse-proxy/213372/1 "2011-10-31T16:07:21Z")

</div>

Hi,

I’m using nginx with reverse proxy to apache.  
I have a wired problem,

When i set .swf files to go with reverse proxy, everything works ok.  
When i set .swf files to be served from nginx, i get tons of errors  
because nginx try to find the file from  
[http://www.url.com/page/path/to/swf](http://www.url.com/page/path/to/swf).

Any idea why this is happand?

Thanks  
Avi

---

<div class="post-metadata">

**Author:** ![avi\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@avi\_k](https://www.ruby-forum.com/u/avi_k)\
**Post date:** [October 31, 2011, 4:38pm UTC](https://www.ruby-forum.com/t/problem-with-serving-swf-files-with-reverse-proxy/213372/2 "2011-10-31T16:38:04Z")

</div>

Ok, got it fixed.  
Insted of using:  
location ~\* ^.+.(swf)$ {  
I set the swf folder as a location:  
location /swf-folder {

Thanks
