November 30th, 2011 |
admin |
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 [...]
November 30th, 2011 |
admin |
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 realtime. Installing on Ubuntu sudo [...]
November 29th, 2011 |
admin |
Download and Install JAVA Download j2sdk-1.4.2 from Sun Download center http://developers.sun.com/downloads/ Here I have used j2sdk-1_4_2_18-linux-i586-rpm.bin which will install j2sdk using RPMS and set the Path of JAVA_HOME automatically #chmod +x j2sdk-1_4_2_09-linux-i586.bin #./j2sdk-1_4_2_09-linux-i586.bin Now Check if Java is installed on the server using command java -version [root@vps907 ~]# java -version java version “1.6.0_07″ Java(TM) SE [...]
November 29th, 2011 |
admin |
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 [...]
November 29th, 2011 |
admin |
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. [...]
November 29th, 2011 |
admin |
Recently a particular folder in a site started coming up with blank php pages and the root cause being Segmentation fault after memory exhaustion. The subfolder contents would only come up after doing a restart of apache. So something tried to access a region of memory that it did not have rights to. May be [...]
November 28th, 2011 |
admin |
This guide explains how to set up mod_geoip with Apache2 on a Fedora 9 system. mod_geoip looks up the IP address of the client end user. This allows you to redirect or block users based on their country. You can also use this technology for your OpenX (formerly known as OpenAds or phpAdsNew) ad server [...]
November 28th, 2011 |
admin |
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: apt-get install apache2-prefork-dev Now we [...]
November 28th, 2011 |
admin |
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. Open your httpd.conf file: # [...]
November 28th, 2011 |
admin |
How to use client certificates with apache This How-To is intended to give a step-by-step configuration guide for creating your own certificate authority (CA) and how to configure apache to allow only certain self-signed user certificates to connect to the webserver. Any other browser connects will be discarded. So let’s start with the requirements. Requirements: [...]