Quote:
Originally Posted by AdultEUhost
assuming you have a managed server I would go a different route
1) setup optimized apache/php5 for the main sites (strip the modules and tweak the fork)
2) setup lighttpd/nginx for your forum attachments/uploads and all other static files
If you can't or don't want to do that pick nginx for everything.
|
why would you like to setup another instance of web server for static files like images/css/js? it's waste of money and time..
why making another dns request and forcing user to connect to another host?
all what you need is nginx, you have choice between:
* nginx+php5fpm
* nginx as reverse proxy + apache2
now.. you are turning on in nginx config:
* expires for static files
* all files are serving direct from hdd, not by requesting apache2
* memcache for all dynamic sites where user is not logged, with expiry time like 5sec..
i choosed second setup (reverse proxy) and my box - 2x3ghz, 4gb of ram is handling dynamic site with over 400 users online (via google analytics realtime), near 350k page views per day and like 1.3mln hits per day.. load time? less than 1s..