View Single Post
Old 02-07-2012, 05:16 PM  
mikke
Confirmed User
 
mikke's Avatar
 
Industry Role:
Join Date: Jan 2010
Location: Europe
Posts: 1,327
Quote:
Originally Posted by AdultEUhost View Post
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..
__________________
icq: 395 294 346
http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form!
now 20 domains!
http://www.porndeals.eu http://www.ebonybangbros.com
mikke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote