nginx proxy configuration

I currently user nginx with passenger to serve my rails app.

I am considering including a reverse proxy for caching (static contents as well as etagged actions).

1 - Can I use this same nginx instance for this purpose? If yes, is this the way to go or do I need a different instance (a new node or another nginx instance running on the same node)?

2 - Is it better to use something like squid/varnish?

Thanks!

2 Replies

From what I know about Varnish, it's intended to be the only thing running on a server; in other words, have the entire server dedicated to it.

So I use nginx as the reverse proxy, would I still need the nginx web server. Will it all the one instance?

Thanks

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct