Posted by: SiiN on: August 6, 2008
If you are running your rails app on an Apache2+ mod_fcgid set up and you receive errors like
[Fri Aug 1 08:10:06 2008 [error] [client 111.222.333.444] malformed header from script. Bad header=*******: dispatch.fcgi
in the Apache error log, make sure you don’t have any output to console (like ‘puts’, added for debugging) left [...]
Posted by: SiiN on: June 12, 2008
You can use the following command to list all the loaded modules in apache (both DSO and Static)
———-
apachectl -t -D DUMP_MODULES
———-
The output will be something like
———
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
auth_passthrough_module (shared)
bwlimited_module (shared)
php5_module (shared)
fcgid_module (shared)
proxy_module (shared)
———
Posted by: SiiN on: June 8, 2008
Here is the Mod Security 2 Default Rules and IDs. May be useful if you want to deactivate any specific rule.
————————————–
marketing.conf
10005 – Marketing Default Action
10006 – Google robot activity
10007 – Yahoo robot activity
10008 – MSN robot activity
http_policy.conf
60031 – HTTP Policy Default Action
60032 – Allow only POST,GET,HEAD Requests
60033 – Block CONNECT / TRACE Requests
60010 – Restrict [...]
Posted by: SiiN on: October 14, 2007
There is no excerpt because this is a protected post.
Posted by: SiiN on: October 14, 2007
for i in `ipcs -s | grep nobody | awk ‘{print $2}’`; do ipcrm -s $i; done
Posted by: SiiN on: October 14, 2007
Add the following in vhost for webmail.cdomain.com
ProxyPass / http://localhost:2095/
ProxyPassReverse / http://localhost:2095/
ProxyPreserveHost On
Posted by: SiiN on: September 6, 2007
Note : This document comes without warranty of any kind!
Installing Apache web server (1.3.x) with mod_ssl and PHP enabled.
===================================================
1 Get the Source
We need the following software: openssl, apache (1.3.x), mod_ssl and PHP. Down load them to /usr/src
cd /usr/src
wget http://www.openssl.org/source/openssl-0.9.7c.tar.gz
wget http://www.apache.de/dist/httpd/apache_1.3.29.tar.gz
wget http://www.modssl.org/source/mod_ssl-2.8.16-1.3.29.tar.gz
Now go to http://www.php.net and download the latest PHP version to the same [...]
Posted by: SiiN on: September 4, 2007
Mod_evasive is an evasive maneuvers module for Apache to provide evasive
action in the event of an HTTP DoS or DDoS attack or brute force attack. It
is also designed to be a detection tool, and can be easily configured to talk
to ipchains, firewalls, routers, and etcetera.
Detection is performed by creating an internal dynamic hash table [...]
Posted by: SiiN on: September 4, 2007
wget http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.4.3.tar.gz
tar xzvf subversion-1.4.3.tar.gz
tar xzvf subversion-deps-1.4.3.tar.gz
cd subversion-1.4.3
make clean
make clean-swig-py
./configure –with-apxs=/usr/local/apache/bin/apxs –with-apr=/usr/local/apache/bin/apr-1-config –with-apr-util=/usr/local/apache/bin/apu-1-config –with-ssl –with-swig=/usr/local/bin/swig –enable-swig-bindings=python –with-neon=/usr/local
make
make swig-py
make install
make install-swig-py