If you want a web server that can handle rails, use apache+mod_passenger. If you want php, then use apache+mod_php. There are so many advantages of separating mongrel from nginx (for instance), so for once and for all leave Nginx as lean and efficient as possible, that's the way I love it.