Load balancing with Nginx

Load balancing, Nginx 1 Comment »

Are you looking forward to balance HTTP or HTTPS traffic to multiple back-end servers? Nginx is one of the best choices – it’s very lightweight, requires less resources and it’s completely free. You need to compile the nginx (there are many resources and howto’s) and add the following lines to your nginx.conf file: upstream webcluster [...]

Nginx two recent patches for null pointer and gx_http_parse_complex_uri buffer underflow

Nginx No Comments »

Nginx developers have released two patches – one that fixes null pointer reference, gx_http_parse_complex_uri() buffer underflow. Update immediate or your site can be attacked and nginx stopped remotely (so I heard). Download the latest stable version and recompile the binary. Then run kill -USR2 nginx_master_pid Make sure you see new master nginx process running (you [...]

Stream flash video using nginx

Nginx, Streaming No Comments »

One of the best solutions for streaming Flash video nowadays is Nginx. It’s super fast, lightweight and does easily support thousands of concurrent connections without taking up much resources. By default flash streaming is not activated and you need to turn it on in compilation process. You enable flash streaming by: ./configure –with-http_flv_module …(add other [...]

Apache settings for prefork.c

Apache No Comments »

We use a medium busy server and do prefer to run prefork.c module with the following settings: StartServers 20 MinSpareServers 5 MaxSpareServers 20 ServerLimit 200 MaxClients 200 MaxRequestsPerChild 25000 The server is Dual Core Pentium with 2GB RAM and it’s not very busy server but does perfect.

Boost WordPress with nginx front end

Nginx No Comments »

Prepare for real performance boost. Run Nginx in a front of Apache and serve all static content directly from Nginx. All php script requests are transparently forwarded to Apache daemon and output forwarded back to Nginx that servers it to a web visitor. Web visitor -> Nginx -> static content -> Nginx -> Web visitor [...]

Nginx web server tips and tricks

Nginx No Comments »

Alright fellows. Many folks are using Nginx nowadays and I thought we need to open a new category dedicated to Nginx. It’s fast, light-weight and reliable web server that’s becoming very popular. We will soon have some fresh content and howto’s about Nginx. Stay tunned!

Best web server for static content hosting on Linux

Web servers No Comments »

There are quite a few web server software daemons that can be used for almost any content hosting, but for high performance and fast static content hosting the choice is not that big. Zeus (commercial) Lighttpd (free) Nginx (free) Thttpd (free) Cherokee (free) We have tested quite a few http server daemons listed above (except [...]

Redirecting users to different page or site using mod_rewrite

Apache No Comments »

OK, if you want to redirect user to a different page or even a site, you can easily do it using mod_rewrite rule set: RewriteCond %{HTTP_USER_AGENT} “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)” [NC] RewriteRule ^(.*) http://yoursite.com/page.html [R=301,L] Will redirect all users with Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) to http://yoursite.com/page.html

slammed with multiple downloads from one IP

Apache No Comments »

If your web site has been slammed with multiple downloads from one IP causing the web site to slow load due to CPU, memory or network stack, it’s time for an action. For apache users there is an easy workaround – you need mod_limitipconn module and you are set. Apache 1.3 and version 2 has [...]

throttling bandwidth with thttpd using URL patterns

Thttpd, Web servers No Comments »

thttpd providers excellent and easy to set-up bandwidth throttling based on files, directories, file types or default web server bandwidth speed. If you want to cap the default bandwidth of your thttpd server to 512Kbps you will need to add the following configuration line to your thttpd config file: ** 51200If exe download files are [...]

limiting apache bandwidth speed and traffic leechers

Apache No Comments »

At this time, there are quite a few modules available that will stop traffic leech and limit simultaneous connections, bandwidth based on files, virtual host and so on. mod_bw Apache 2 (also available for Windows platform): http://www.ivn.cl/apache/ mod_cband (Apache2): http://cband.linux.pl/ mod_bandwidth http://www.cohprog.com/v3/bandwidth/doc-en.html#

mod_security and suggested rules

Apache 1 Comment »

mod_security is a powerful attack shield that can block http requests based on pre-defined rules. It’s a nice shield against known software exploits (e.g. non-patched forums, scripts etc)… A non-aggresive rule set: # Turn the filtering engine On or Off SecFilterEngine On # Change Server: string SecServerSignature “Apache” # This setting should be set to [...]

Measuring your server bandwidth usage

Web servers No Comments »

If you are getting attacked or simply burning too much traffic (your upstream provider says so)… it’s perhaps the best time to check out  how much of traffic are you really bursting? There is a software (freeware of course) that perfectly counts/measures your server traffic usage so go ahead and use it. http://dast.nlanr.net/Projects/Iperf/

Perfect http daemon for large file serving

Thttpd 1 Comment »

We will soon perform some benchmarking with thttpd and large file serving, but I am confident that it will be one of the best. Why? Because it’s FAST and I mean it…: it doesn’t fork perfect memory management small runtime implements http 1.1 protocol with minimum requirements secure and robust

Checking web server header

Http protocol, Web servers No Comments »

You can easily check a web server header using a simple telnet utility. telnet www.yahoo.com 80 HEAD / HTTP/1.0 and hit Enter two times. You will get a header response with the HTTP status code…. HTTP/1.1 200 OK Date: Mon, 31 Jul 2006 05:47:22 GMT P3P: policyref=”http://p3p.yahoo.com/w3c/p3p.xml”, CP=”CAO DSP COR CUR ADM DEV TAI PSA [...]

WP Theme
Entries RSS Comments RSS Log in