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.
Read the rest of this entry
HOWTO: Using Nginx
Author: adminDec 21
Optimize your Apache VPS for WordPress
Author: adminDec 17
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 it just for WordPress, you can make some small tweaks to your configuration and get some significant performance gains.
Read the rest of this entry
Tuning the Apache MaxClients parameter
Author: adminDec 17
This parameter defines how many simultaneous request can be served. Any connection request from browsers that come in after that will be queued.
Read the rest of this entry
Apache Tips: Disable the HTTP TRACE method
Author: adminDec 17
Applies: apache 1.3.x / apache 2.0.x
Required apache module: -
Scope: global server configuration
Type: security
Description: How to disable the HTTP TRACE method on recent apache versions.
Most vulnerability scanners (like the popular nessus, but commercial ones also) will complain (normally as a low thread or warning level) about TRACE method being enabled on the web server tested.
Read the rest of this entry
Shell Script List All Top IP Address Accessing Apache / Lighttpd Web Server
Author: adminDec 14
#!/bin/bash
# Shell Script To List All Top Hitting IP Address to your webserver.
# This may be useful to catch spammers and scrappers.
# ———————————————————————-
# This script is licensed under GNU GPL version 2.0 or above
# ———————————————————————-
# where to store final report?
DEST=/var/www/reports/ips# domain name
DOM=$1# log file location
LOGFILE=/var/logs/httpd/$DOM/access.log# die if no domain name given
[ $# -eq 0 ] && exit 1# make dir
[ ! -d $DEST ] && mkdir -p $DEST# ok, go though log file and create report
if [ -f $LOGFILE ]
then
echo “Processing log for $DOM…”
awk ‘{ print $1}’ $LOGFILE | sort | uniq -c | sort -nr > $DEST/$DOM.txt
echo “Report written to $DEST/$DOM.txt”
fi