Redirect Sub-Directory to Sub-Domain while retaining the links

Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^indude.com [NC]
RewriteRule ^(.*)$ http://www.indude.com$1 [L,R=301]
RedirectMatch 301 ^/linux/(.*)$ http://linux.indude.com/$1

In this example I’m redirecting my visitors and spiders from subdirectory called “linux” to a sub-domain. The redirect is permanent (301), … Read the rest

How to secure your Debian Server running Nginx, PHP and Mysql

Edit SSH Configuration: /etc/ssh/sshd_config

Port XXXX
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 60
PermitRootLogin no
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no… Read the rest