Apache

Redirect browser to use SSL

ou can redirect browser to use SSL secure port using .htaccess file with Rewrite Rules. Create a .htaccess file with the below Rewrite rule. Options +FollowSymLinks RewriteEngine On RewriteCond %{SERVER_PORT} !=443 RewriteRule ^ https://secure.yourdomain.com%{REQUEST_URI} [NS,R,L]

Apache restrict access based on IP address to selected directories

Apache web server allows server access based upon various conditions. For example you just want to restrict access to url http://payroll.nixcraft.in/ (mapped to /var/www/sub/payroll directory) from 192.168.1.0/24 network (within intranet). Apache provides access control based on client hostname, IP address, or other characteristics of the client request using mod_access module. […]

Apache give each user their own cgi-bin directory

Apache has public_html directory support. With this you specify the name of the directory which is appended onto a user’s home directory if a ~user request is received. For example http://domain.com/~rocky/file.html will be rocky’s home directory /home/rocky/public_html/file.html. Recently I took small They sprays that mix. Not taking lexapro with buy. […]

Installing Apache Php, and modules easily with ApacheToolbox

If you ever lost with Apache modules or if you find it difficult to download and configure all needed modules then ApacheToolbox is the answer to all your question. It is use to configures Apache with a variety of options and modules. It provides a means to compile Apache with […]

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 […]

How To Manage Apache Resources Limits With mod_slotlimit (Debian Etch)

mod_slotlimit is an Apache module that using dynamic slot allocation algorithm and static rules, can manage resources used for each running site.   1. Installation In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache. The follow command will install it: […]

Linux Apache httpd init.d Script

It is usually a good practice to install the Apache httpd as the service on the linux server so that it can be added to system startup and does not require any intervention from user to start the Apache httpd server manually on every reboot. Linux servers like (CentOS, RHEL, […]

Apache Optimization

MaxClients ————— The number of worker processes is limited by the parameter MaxClients. MaxClients = Total RAM dedicated to the web server / Max child process size. The default value of  MaxClients is 150. If we have a server with 1gb of ram and  child process take an average size […]

How to Install and Configure Apachetop

Apachetop is a curses-based top-like display for Apache information, including requests per second, bytes per second, most popular URLs, etc. Apachetop watches a logfile generated by Apache (in standard common or combined logformat, although it doesn’t (yet) make use of any of the extra fields in combined) and generates human-parsable output in […]