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.
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
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 [...]
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 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 [...]
Ok here is the deal if you do not want to switch to other web server software (e.g. Cherokee, thttpd, roxen, boa, lighttpd) and want the best performance for serving static files that do not often change the best solution is to use mod_mmap_static module. This module is not compiled in by default and you [...]
In httpd.conf there is a directive MaxClients that is usually defined ~ 150. This value allows to serve more simultaneous requests and process queue more faster. Please note that you will need to recompile apache httpd (you must edit the HARD_SERVER_LIMIT entry in httpd.h and recompile) in order to set it higher that 256. Remember [...]
For best performance you need to strip down your apache binary – the less modules, the less memory used the better speed / performance you will get. If you are loading modules via DSO you can easily remove module from the loading list by commenting out the LoadModule option. If you have a module linked [...]
If you have mod_status support compiled in your apache (either statically or using DSO) and activated in httpd.conf file with ExtendedStatus On you are probably affecting your site and server performance because every request to apache (e.g. web site hit) will generate multiple queries to gettimeofday or times function/system call depending on your Operating System.Make [...]
The option MaxKeepAliveRequests specifies the number of requests allowed per connection when the KeepAlive on has been set. When the value of this option is set to 0 then unlimited requests are allowed on the server. For better server performance, it’s recommended to allow unlimited requests or you can always define it with a high [...]
Boosting apache performance in high load environments. I suggest decreasing timeout value and keepalivetimeout, as well as other values listed and described below. Original timeout has been set to 300 by default. I suggest decreasing it to 120 (2 minutes) so all connections will timeout after 2 minutes. period. Timeout 120 By default, keepalive is [...]
Below, I have compiled a quick steps to make your Apache run faster and with better performance. 1.) When you are compiling turn off all the features and modules you do not need. The less the better. 2.) Turn off DNS logging with “HostnameLookups off” in httpd.conf file 3.) If you have .htaccess definitions, if [...]
Apache is a free and open source commercial grade web server software that according to Netcraft is the number #1 server that is powering millions of web sites and growing. Web site URL: http://www.apache.org Ps. even this web site is hosted using Apache web server daemon!
Recent Comments