Devide Static and Dynamic Content - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: Suggestions (/forum-2.html) +--- Thread: Devide Static and Dynamic Content (/thread-463.html) Pages: 1 2 |
Devide Static and Dynamic Content - HappyAlex - 05-01-2007 12:24 AM and one day i met very bad situation...huge loading in my apache and i thinking about .. using nginx (like httpd daemon) for serve static (avi.mp3,jpg, gif and etc) and php,cgi by apache i make some changes on vhcs-als-mng vhcs-sub-mng vhcs-dmn-mng if anyone intresting in this ... i can put step by step RE: Devide Static and Dynamic Content - xister - 05-01-2007 12:28 AM Sorry, we support no vhcs!! We´re only support ispCP. For vhcs support, please contact the vhcs forum! RE: Devide Static and Dynamic Content - HappyAlex - 05-01-2007 12:34 AM xister sorry for my English, but i think you did not understand me ok .. when you host avi,mp3 and etc files on your servers... it's good but when users try to downloading it .. it makes huge loading in apache...apache makes childs and eating memory and CPU i met this problems....and get solution to unload apache with nginx .. right now my apache works only with php and cgi... with files like mp3, avi, jpg, gif and etc... working nginx... right now i'm using this schema on two production servers and everything is ok RE: Devide Static and Dynamic Content - xister - 05-01-2007 12:48 AM ahhh ok, i missunderstood your first post a little bit, sorry RE: Devide Static and Dynamic Content - BeNe - 05-01-2007 01:51 AM That means that Apache und ngnix runs at the same time on your system ? Did you only change the Ports or what ? I will test a avi or mp3 download these days on my Server with Apache2 and give a report. RE: Devide Static and Dynamic Content - ephigenie - 05-01-2007 04:56 AM Hm i know nginx and lighttpd are both very perfomant, but for static files are both (nginx + lighttpd + apache2.2.x) able to max out a 100Mbit line easily. Maybe not with mpm-prefok but Instead of the old & crap vhcs we can use mpm-worker or mpm-event & both of them are blazing fast (compared to 1.3.x & 2.0.x speed) . So from my point of view a mixed mode setup makes not that much sense. Because you've to take into account the overhead nginx/lighttpd's mod_proxy loads on every dynamic request. Btw. do you mean the single-threaded -event-driven smart webservers in front or behind the apache ? Something else which is by far more interesting would be a complete switch to lightty/nginx. But i has to regret that this is atm only hardly possible. Thats caused by the lack of modularity and therefore the poor possibilities with our current template driven modell. So a complete lighttpd / nginx support instead of apache is possible (perhaps with some limitations but... ) But that is planned to be supported in a later version. Though perhaps we can build together a way to support a switch now between apache/proxy->nginx/lighttpd or pure apache or pure lighttpd/nginx. What do you mean ? RE: Devide Static and Dynamic Content - raphael - 05-01-2007 08:08 AM I would say using lighttpd as the external listener. By the way, this is interesting: http://trac.lighttpd.net/trac/wiki/Docs%3AModProxyCore RE: Devide Static and Dynamic Content - ephigenie - 05-01-2007 08:37 AM yes the idea is nice & copied a bit from the apache 2.2 concept of doing proxying one core "router" and surrounded by plugins which control routing and plugins supporting different protocols Hm but i'm still not sure that lighttpd is that much faster on static files than apache - event (that one can even be linked against libaio and so on ) so it's able, too to do non-blocking io and all those nice things. ( you know even apache2.2 can max out a 100mbit line with a 500Mhz cpu - the difference is only visible, when you're going to let your 1000mbit line burn (you run a torrent tracker ? ) The real difference is the fastcgi implementation. That's really damn fast. And the low memory footprint of course. So in the end its less ressource intensiv as apache is. But regarding only the speed of static files I'm not quite sure if you'll get a big difference there. (But a total changed setup does for sure! ) RE: Devide Static and Dynamic Content - HappyAlex - 05-01-2007 01:03 PM nginx/lighthttpd - this is front end apache is backend i'm using mpm-worker apache and saw one thing..when users try download avi.mp3 ..apache makes childs and get more RAM and CPU it's not good so .. i decide to use for this (downloading files - only) nginx (lighthttpd - without any modules ) RE: Devide Static and Dynamic Content - solars - 05-04-2007 07:23 PM I'm planning to do some similar setup on a server, Nginx in the front, Apache in the backend. Here is an example if anyone is interested, its german, but the main part is the config anyways: http://www.nginx.de/NginxToApache My reason for doing this is because I think about isp-control as a nice hosting control for some of my older users and their php site. The main reason though is that I mainly want to host Rails applications, and nginx is the best choice for this in my opinion. I'm not sure how to setup the whole server, so any suggestions/discussion if someone did something similar, is appreciated. And of course, isp-control support towards a lighter server would be really cool edit: when trying to use nginx with isp-control, does anyone know what problems this could cause or causes? and why? |