# Replace content of body reverse proxy

**URL:** <https://www.ruby-forum.com/t/replace-content-of-body-reverse-proxy/200969>\
**Category:** NGINX\
**Created:** [December 26, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/replace-content-of-body-reverse-proxy/200969 "2010-12-26T20:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [December 26, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/replace-content-of-body-reverse-proxy/200969/1 "2010-12-26T20:40:06Z")

</div>

Hi,

I want to configure my nginx server to reverse  
proxy a given website, and change the contents of the html to render  
something else. For example, if my website is [www.google-proxy.com](http://www.google-proxy.com), it  
will show the user the google home page, but my perl module would change  
the button “I’m feeling lucky” to “I’m NOT feeling lucky”.

So  
basically, it’s an outputfilter. Apache has something similiar and I  
would like to know if anything is available for nginx.

I found HttpSubsModule, however, i want to control the find / replace  
implementation. For example, I want to change all words “dog” and make  
it bold.

Thx in  
advance.

David

---

<div class="post-metadata">

**Author:** ![David\_Hang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e95f7d/32.png) [@David\_Hang](https://www.ruby-forum.com/u/David_Hang)\
**Post date:** [October 26, 2012, 3:20pm UTC](https://www.ruby-forum.com/t/replace-content-of-body-reverse-proxy/200969/2 "2012-10-26T15:20:27Z")

</div>

I need this feature too.

Posted at Nginx Forum:

> **[Re: Replace content of body reverse proxy](https://forum.nginx.org/read.php?2,161250,232257#msg-232257)**
>
> Hi, I want to configure my nginx server to reverse proxy a given website, and change the contents of the html to render something else.  For example, if my website is www.google-proxy.com, it will show the user the google home page, but my perl...
