Blog / Security

Apache: Redirecting http to https using a .htaccess file

March 23, 2008

To redirect http traffic to https in Apache, create a .htaccess file with the following content:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Place the .htaccess file in your website directory and that should be it.

NOTE: The rewrite module in Apache must be enabled for this to work. To check whether it is enabled, open your httpd.conf and make sure the line below is not commented:

LoadModule rewrite_module modules/mod_rewrite.so

If you’re running Apache …

How to install a backup SonicWALL PRO 230 firewall

January 4, 2008

We had to do this last January and this was supposed to be a job that shouldn’t take more than an hour to complete but it took us a few hours due to the lack of documentation (our biggest issue was how to reset the firewall to factory defaults because no one knew the password for it, the person who originally configured the second firewall left a while back). SonicWALL no longer supports this product …

TrueCrypt Disk Encryption Software

January 4, 2008

I’m sure you’ve heard or read many stories before about laptops getting stolen containing thousands/hundreds of thousands of records on patients/customers/etc. Those records usually include very sensitive information such as a person’s Social Security Number. And a lot of times the data on those stolen laptops were not encrypted!!! Now those people are at high risk of identity theft. This wouldn’t have been such a big deal if they took an extra step of saving …

Newer