27
Sep

Static files with Nginx + Passenger

Normally, when you setup Nginx and Passenger to serve your rails application, all static files are served by Nginx without hitting Passenger. What really happens is that all static files that do exist are served by Nginx and the rest are passed on to mongrel.

For example http://www.mydomain.com/javascripts/prototype.js will be served by Nginx , but http://www.mydomain.com/javascripts/iamastupidrobot.js will continue to Passenger going all the way through the Rails stack. Instead of a simple 1ms nginx process , you get a full stack rails request with a route recognition error. Not good

Read more »

posted by gchatz 5 comments nginx rails
1
Oct

So long Apache and thanks for all the fish

Apache has been good to us, and we have been good to him.
For quite a while we’ve been using Apache and mod_proxy_balancer to distribute requests to mongrels .
But, while adding a new twin server for Skroutz we had to say goodbye.

Read more »

posted by gchatz 3 comments nginx