# Proxy and 301 codes

**URL:** <https://www.ruby-forum.com/t/proxy-and-301-codes/148070>\
**Category:** NGINX\
**Created:** [September 8, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/proxy-and-301-codes/148070 "2008-09-08T23:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 8, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/proxy-and-301-codes/148070/1 "2008-09-08T23:35:27Z")

</div>

I am using nginx as front-end with apache as backend for (for mod\_php)

If I have a 301 redirect on a page that is proxied to apached,  
i do not get  
redirected but rather see a page that says

Moved Permanently

The document has moved here.

with (here) being a link to the new location.  
If i go to the page on my backend  
port, i get redirected automatically.  
How can i get the backend to tell nginx to  
redirect??
