Архив за година: 2012

mod_evastive

cd /usr/local/src Download the module wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz Untar tar zxvf mod_evasive_1.10.1.tar.gz Go to the folder cd mod_evasive Compile it /usr/sbin/apxs -cia mod_evasive20.c Add to apache config file /etc/httpd/conf/httpd.conf <IfModule mod_evasive20.c> DOSHashTableSize 3097 DOSPageCount 6 DOSSiteCount 100 DOSPageInterval 2 DOSSiteInterval 2

С етикет: , , , ,
Публикувано в linux

Товa са много гълъби

С етикет:
Публикувано в Снимки

redirect to https using .htaccess

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Публикувано в linux

Linux screenshot from command line

import -window root screenshot.png requires imagemagick

С етикет: , , , , ,
Публикувано в linux

Joomla Share link on Facebook and Default image

<link rel=“image_src“ href=“http://example.com/facebook-will-use-this.jpg“ /> JFactory::getDocument()->addHeadLink( $imagePath, ‘image_src’, ‘rel’ );

С етикет: , , ,
Публикувано в Joomla