configuring nginx as reverse proxy

Posted by user55714 on Server Fault See other posts from Server Fault or by user55714
Published on 2010-10-12T02:50:42Z Indexed on 2010/12/24 18:55 UTC
Read the original article Hit count: 244

Filed under:
|

This isn't directly passenger related..but I am hoping some of you might have tried this for sure so why not ask.

I am using passenger with nginx to serve my rails app on a virtual slice host. I am considering putting a reverse proxy for serving static content as well as handling etagged actions.

1 - Can I use my existing nginx installation and just change it to a reverse proxy? Do I even need a web server? What would a typical architecture look like in this case?

nginx rev-proxy -> nginx web server -> passenger?

or

nginx rev-proxy -> passenger?

2 - Is nginx the best choice in this case?

3 - Can my reverse proxy reside on the same slice?

Thanks

© Server Fault or respective owner

Related posts about nginx

Related posts about passenger