|
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
2009-04-14, 01:10 PM | #1 | |
I can now put whatever you want in this space :)
Join Date: Mar 2009
Location: Merica!
Posts: 543
|
Quote:
I also read something about trip pages under lighttpd, but havent had time to reallly look into it. Is that what you were referring to? That was one of the ideas I was going to look into further, as well as some weird iptables and proxy stuff, but the idea to dynamically rewrite the .htaccess for allow/deny was a whole lot simpler, at least under apache. |
|
2009-04-14, 02:32 PM | #2 | |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Quote:
lighttpd removes quite a few capabilities that apache includes by default and lighttpd starts as a stripped down server. Apache is by no means a great performer, but, it is consistent, has a huge installed base, and everyone writes software expecting all of the things that would normally be present in an apache environment. As for your idea, verifying a cookie, trigger before download and trafficguardian, there is a very, very simple way to bypass those protections which makes those methods somewhat fruitless to someone determined to hotlink the sites. Short of some very specific cases, not using apache will add headaches down the line. If you liked lighttpd, check nginx. If you're looking for something relatively seamless to make apache quicker, check varnish. I'll warn you -- once you step off the path from apache, you either have to change the way you work, or spend a lot of time making them work the way you do. And while they all claim to have somewhat sane defaults, those defaults are nowhere near production quality. Just to give you an idea: ab -n 10000 -c 50 http://66.55.44.33/info.php nginx, Requests per second: 320.79 [#/sec] (mean) apache mpm-worker, Requests per second: 320.65 [#/sec] (mean) lighttpd, Requests per second: 278.49 [#/sec] (mean) varnish, Requests per second: 3391.36 [#/sec] (mean) (varnish cached the response and answered the request out of the cache. Depending on your site, php isn't cacheable since Wordpress and others stuff expire times in there to require that the page be generated on every pageload. Yes, you can tell varnish to ignore that.) info.php is just <?php phpinfo();?> 71k .jpg image nginx, Requests per second: 3505.96 [#/sec] apache mpm-worker, Requests per second: 814.97 [#/sec] apache mpm-worker with allowoverride turned off: Requests per second: 2488.22 [#/sec] (mean) lighttpd, Requests per second: 3819.69 [#/sec] (had 17 failed to serves) varnish, Requests per second: 3012.98 [#/sec] There's another test that I did on throughput -- lighttpd actually serves files slower than each of the others. 100mb file took longer to download on lighttpd than it did on the other three. So, lighttpd dropped 17 requests out of 10000 and serves slower on long files than the others. Granted a benchmark is a crude test, but, it gives you some idea. So, if you're out for true performance, you've already swapped out apache-mpm-prefork for apache-mpm-worker. Or, if you like to live on the edge (no pun intended), you might be using mpm-event. If you're still using prefork and comparing that to lighttpd and have overrides set and mod_status and the dozen other apache modules still installed, then its not really a fair test. Apache does extremely well until you start pushing 70-80mb/sec or get close to 1000 requests per second. If you like to use server side includes, varnish has Edge Side Includes which are extremely powerful. Sort of diverted from the original post.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
|
2009-04-14, 02:44 PM | #3 |
I can now put whatever you want in this space :)
Join Date: Mar 2009
Location: Merica!
Posts: 543
|
|
2009-04-14, 04:11 PM | #4 | |
If something's hard to do, then it's not worth doing
Join Date: Sep 2008
Location: Berlin, Germany
Posts: 247
|
Quote:
Waiting for 2.0 really Anyway back to the regularly scheduled thread...
__________________
What's blue and not heavy? |
|
|
|