Tag archive for ‘Apache’

Tuning the Apache MaxClients parameter

This parameter defines how many simultaneous request can be served. Any connection request from browsers that come in after that will be queued. Apache prefork, StartServers, MaxSpareServers and MinSpareServers In the most common case, you will be using Apache in the prefork mode, meaning one process per connection, with a pool of processes pre-forked to [...]

ConfigServer ModSecurity Control

This is an exclusive! and free! add-on product for cPanel/WHM. The product provides you with an interface to the cPanel mod_security implementation from within WHM. With ConfigServer ModSecurity Control you can: Disable mod_security rules that have unique ID numbers on a global, per cPanel user or per hosted domain level Disable mod_security entirely, also on [...]

HOWTO: Using Nginx

This instruction describes how to use nginx as reverse proxy for apache, also I’ll show some tips how use nginx for heavy loaded sites. Majority of my servers are freebsd boxes, so this howto oriented on freebsd, but I’ll show some tips for linux too. Nginx is a free, open-source, high-performance HTTP server and reverse [...]

Optimize your Apache VPS for WordPress

If you made the decision to move your WordPress install from shared hosting to a shiny new VPS you should consider optimizing Apache by making some tweaks to your httpd.conf file. Apache is a fast, reliable, and flexible server but is heavy on resources by default. If you are running a small VPS, and using [...]

make_sock: could not bind to address 0.0.0.0:80

You may come across the following error while restarting Apache: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs The reason is, some Apache processes are still running though the service is stopped and the port 80 is still binded to some processes. [...]

Warning: MaxClients exceeds ServerLimit

You may reach the maximum number of clients that are allowed to connect to your Apache web server and Apache stops responding. In this case, you have to increase the MaxClients and ServerLimit variable to a higher value. The changes has to be placed in the Apache configuration file located at /usr/local/apache/conf/httpd.conf but in case [...]

wtop – Apache Web Server: Log Analysis and Server Status Monitoring Tool

How to Install and Configure wtop – Apache Web Server Log Analyser wtop is really cool application for web server log analysis and to see server stats at a glance. It also has powerful log grepping capability. It is just like ‘top’ for your webserver. It can find out number of searches or signups per [...]

Apache Chroot Jail: Virtual Hosting

Now your chrooted Apache jail is ready. It is time to add domains using Apache virtual hosting features. Our sample setup for two domains called theos.in and nixcraft.com is as follows: Domain: nixcraft.com JailDir ($J): /httpdjail Domain configuration file: /etc/httpd/conf/vdomains/nixcraft.com.conf DocumentRoot: $J/home/httpd/.nixcraft.com/http Log Directory: $J/home/httpd/.nixcraft.com/logs Virtualhosting settings for theos.in: Domain: theos.in JailDir ($J): /httpdjail Domain [...]

Reduce Apache’s Load With Nginx On RHEL 5.2

This how-to describes how to install and configure Nginx to accelerate an Apache server based on RHEL 5.2.   1. Update your installed packages yum install update   2. Install new packages yum install -y httpd-devel wget http://rpmfind.net/linux/EPEL/5Server/i386/nginx-0.6.31-3.el5.i386.rpm rpm nginx-0.6.31-3.el5.i386.rpm   3. Edit /etc/nginx/nginx.conf Setting up nginx as a reverse proxy: nano /etc/nginx/nginx.conf Change worker_processes [...]

Set HTTP Expires header

With Apache, one easy way to do this is to generate a link that contains a build/version number or date in the path, e.g: /css/{build-number-or-date}/file.css In Apache, in your configuration file (e.g. .htaccess if that is all you have access to) you can set the Expires header and rewrite your url to the real location. [...]