# Forcing Nginx to render response from Rails application

**URL:** <https://www.ruby-forum.com/t/forcing-nginx-to-render-response-from-rails-application/187384>\
**Category:** NGINX\
**Created:** [April 22, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/forcing-nginx-to-render-response-from-rails-application/187384 "2010-04-22T12:31:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![retro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@retro](https://www.ruby-forum.com/u/retro)\
**Post date:** [April 22, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/forcing-nginx-to-render-response-from-rails-application/187384/1 "2010-04-22T12:31:53Z")

</div>

Hi, I’m using Nginx with Phusion Passenger, and I would like to render  
some responses from Rails App even though file exists at that URI on  
server. I want to do this based on subdomain from which request is  
coming. Is something like that even possible? I’ve managed to do  
redirect based on this conditions but it would be better if I could do  
that internally, without change to URL.

Posted at Nginx Forum:

> **[Forcing Nginx to render response from Rails application](https://forum.nginx.org/read.php?2,77960,77960#msg-77960)**
>
> Hi, I'm using Nginx with Phusion Passenger, and I would like to render some responses from Rails App even though file exists at that URI on server. I want to do this based on subdomain from which request is coming. Is something like that even...
