a tutorial on how to install nginx 1.*.* as reverse proxy for apache and drupal (include boost image cache and etc')?

Events happening in the community are now at Drupal community events on www.drupal.org.
yakovyarmo's picture

Can anyone please explain or upload a brief tutorial on how to integrate apache with nginx as reverse proxy and still use boost and other apache module?

And what kind of cahce is better (boost or native nginx)?
(I saw a long thread about it but i kind of lost it to the end)

limudnaim

Comments

Well

perusio's picture

You have to make nginx serve the static assets including the HTML generated pages by Boost. For the remaining you do a proxy_pass to an Apache backend.

For a configuration check those listed at the top of the group. Most of them support Boost.

You should say if you're using drupal 6, pressflow or drupal 7.

I recommend you take a look at this thread to get a notion of what's involved in setting up Nginx as a reverse proxy to Apache.

That should give you something to start working.

Thank you. I am using drupal

yakovyarmo's picture

Thank you.
I am using drupal 6. Are there any patches i need to apply to make it work?

To make it work while saving you trouble

perusio's picture

yes. But as suggested in the thread I referred above you'll be much better using pressflow. Since it already does a lot of things for you like setting a bunch of cookies and headers. Since there's no migration to speak of when moving from D6 to pressflow: untar it and you're done, I don't see any compelling reason to stay with stock drupal.

Won't it break my site (it is

yakovyarmo's picture

Won't it break my site (it is a production site)?
How can I check all the diffs ?

One if them is here

perusio's picture

http://drupal.org/files/issues/my_unidiff.patch but you can always download both stock drupal and pressflow, extract them in different dirs and do:

diff -U -x "*.txt" <pressflow dir> <drupal dir>

you're doing it wrong.

c0psrul3's picture

IMHO,
you're doing it wrong.

what apache-specific modules or whatever are keeping you using apache?

on a side note, i believe this question would be better answered in an Nginx forum, no?

--
Mike Nichols
My Own Soho, LLC
mike@myownsoho.net
www.myownsoho.com

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week