Force HTTPS / SSL using .htaccess and mod_rewrite Rumi, February 7, 2013 Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Please, note that the .htaccess should be located in the web site main folder. In case you wish to force HTTPS for a particular folder you can use: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} somefolder RewriteRule ^(.*)$ https://www.domain.com/somefolder/$1 [R,L] The .htaccess file should be placed in the folder where you need to force HTTPS. Related Administrations Configurations (Linux) ApacheSSL
Remove Old Kernels of Debian/Ubuntu April 1, 2022 To find out the current version of Linux kernel running on your system, use the following command. $ uname -sr Linux 4.12.0-041200-generic To list all installed kernels on your system, issue this command. $ dpkg -l | grep linux-image | awk ‘{print$2}’ linux-image-4.12.0-041200-generic linux-image-4.8.0-22-generic linux-image-extra-4.8.0-22-generic linux-image-generic Remove Old Unused Kernels… Read More
ZFS Manager Webmin Module January 8, 2024January 8, 2024 I found this wonderful webmin module of ZFS Manager. Kinda love its feature and functions as it literally shortened the tedious siwtches and values of zfsmanager! I’m just quoting from the developer’s readme section down here- ZFS administration tool for Webmin This is in early development, not for production. That… Read More
Check processor and cpu details January 15, 2017 $ cat /proc/cpuinfo | grep vendor | uniq $ cat /proc/cpuinfo | grep ‘model name’ | uniq $ lscpu $ lscpu | grep -i mhz $ cat /proc/cpuinfo | grep -i mhz | uniq $ watch -n 0.1 “cat /proc/cpuinfo | grep -i mhz” $ cat /proc/cpuinfo | grep processor… Read More