Is is better to combine Apache for file manipulation and upload and Nginx for static file serving, or to use one of the two alone

Posted by user1032393 on Server Fault See other posts from Server Fault or by user1032393
Published on 2012-06-21T09:03:00Z Indexed on 2012/06/21 9:17 UTC
Read the original article Hit count: 137

Filed under:
|
|

Based on my research, I've read that nginx is best and ideal for serving up static files and images. My application depends heavily on uploading of images and rewriting them, then serving them up. Given that I only have one VPS currently, it has been suggested that I use nginx to serve up the images and website, and reverse proxy to Apache (on the same VPS) to rewrite files with image magick and handle the file uploads. Which would be the best solution, Apache, Nginx, or Apache + Nginx? In terms of best solution, I'm looking at minimal average RAM consumption, while maintaining decent load speed of maybe sub 2 seconds?

© Server Fault or respective owner

Related posts about apache2

Related posts about nginx