Setting up DomainKeys on Centos

This is a quick walk through on how to set up domain keys on Centos 5 using sendmail. It should also be very similar for Redhat or Fedora.

Domainkeys is a method mostly used by yahoo to verify that the sender of an email is valid. I did notice that gmail changes the domainkeys header line [...]

Setup a transparent proxy with 3 easy steps

First, Squid server installed (use up2date squid) and configured by adding following directives to file:
# vi /etc/squid/squid.conf

HTPasswd Tutorial

If you would like to have a set of web pages that are protected, requiring a username/password to gain access, this tutorial will show you how to set it up. This is geared towards the Unix Apache httpd servers used on holly, lamar, and www.colostate.edu. If you are using another web server, you’ll need to [...]

Simple Web/Linux IP Address Lookup

If you’re going to be doing a lot of Geotargeting or IP Address Lookups, please take a feed instead which will preserve both our bandwidth and your bandwidth.
Simple GET
That said, there is an easy HTTP oriented API to locate IP addresses and Geocode them. If you don’t supply the “?ip=aa.bb.cc.dd” bit, [...]

How to tune Apache and Mysql

By default, Apache comes preconfigured to serve a maximum of 256 clients simultaneously. This particular configuration setting can be found in the file /etc/httpd/conf/httpd.conf
If your server has 2 GB of RAM, and you’re sharing your server with MySQL(true in my case), you’ll want to reserve about half of it for Apache (1 GB)

Necessary commands (tips) to tune apache

To search in the current directory and all sub directories for a file named httpd.conf
find . -name “httpd.conf” -print
To find some string or text, type
find . -exec grep “MaxClients” ‘{}’ \; -print

Howto: HTACCESS Authentication restriction, but allow some IPs to get thru

Easy part, just create like below .htaccess file on your web folder :
AuthName “My Protected Site”
AuthUserFile /home/apache/.htpasswd
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from 192.168.1. 192.168.2.
Satisfy Any
Good luck!

How To Add Godaddy SSL Site Seal Image

We have 2 ways, to get this done. You just need to choose, which way is suitable for you

Securing Linux

Mod_security(ModSecurity is an open source intrusion detection and prevention engine for web applications)
Features
• filtering POST and GET requests (including hearders)
• filters inheritance and ability to add filters in each vhosts configuration file, and    per directory
• include a way to chroot apache in an easiest way
• ability to fake apache output (like telling “Microsoft IIS” on error page or [...]

Mixing PHP and SSI

This information is ONLY relevant to PHP4 and Apache 1.3. (BUT possible can be work also in PHP 5.x and Apache 2.x ) We historically used PHP for all our web work. We have decided to migrate to ruby for lots of reasons for all our new web development but we still have lots of [...]