Welcome! Log In Create A New Profile

Advanced

Use rewrite /blog to transparently proxy to another app

Fernando Perez
August 02, 2010 12:20PM
Hi,

I have various applications running RoR. In order to improve code
maintenability I have decided to use a single blog application that will
be used by different apps.

So a user will be browsing app1 at: app1.com

And when he wants to check out the blog of app1 he goes to:
app1.com/blog which behind the scene transfer the request to my blog
engine.

I tried the following:

server {
...
location ^~ /blog/ {
proxy_set_header Host $http_host;
proxy_pass http://blog$uri;
}
}

But it seems to ∞ly redirect the request.

Thanks for your upload
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Use rewrite /blog to transparently proxy to another app

Fernando Perez August 02, 2010 12:20PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 02, 2010 03:22PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 02, 2010 04:06PM

Re: Use rewrite /blog to transparently proxy to another app

Igor Sysoev August 02, 2010 04:14PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 03, 2010 02:38PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 03, 2010 02:52PM

Re: Use rewrite /blog to transparently proxy to another app

Igor Sysoev August 03, 2010 02:52PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 03, 2010 03:22PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 05, 2010 05:10AM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 05, 2010 05:40AM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 05, 2010 05:46AM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 05, 2010 07:52AM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 05, 2010 07:56AM

Re: Use rewrite /blog to transparently proxy to another app

Igor Sysoev August 05, 2010 08:08AM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 05, 2010 12:40PM

Re: Use rewrite /blog to transparently proxy to another app

Igor Sysoev August 05, 2010 12:42PM

Re: Use rewrite /blog to transparently proxy to another app

Fernando Perez August 02, 2010 03:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 320
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready