Redirect http to https
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.panticz\.de [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.panticz.de/$1 [L,R=301]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L]
Allow directory listing
Options +Indexes
Enable PHP5
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
or
SetEnv PHP_VER 5
disable REGISTER_GLOBALS
SetEnv REGISTER_GLOBALS 0
redirect to another homepage
Show loaded modules
apache2ctl -M
Enable mod_rewrite module
a2enmod rewrite
/etc/init.d/apache2 force-reload
# change"AllowOverride None" to "AllowOverride All" in your /etc/apache2/sites-available/default for the directory in which you will use the mod_rewrite module
benchmark
apt-get install apache2-utils
ab -n 100 -c 10 http://www.google.com/ > ad.out
test
# echo "SetEnv REGISTER_GLOBALS 0" >> .htaccess