Bryan Seeds


Apache Redirect HTTP to HTTPS

This article explains how to redirect a HTTP request to HTTPS so you ensure your visitors are always using an SSL enabled connection with the Apache web server.  This requires first that you have in your httpd.conf configuration file the SAPI module "mod_rewrite" un-commented and working, and of course that you have mod_ssl working also.  Then all there is to it is create an ".htaccess" file in your servers document root.  The file should contain the below :

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]

Also, there is another method.  Simply append to your httpd.conf file these lines :

Redirect permanent /

Hope that is of some help to some of you.

Tagged as: , , No Comments

Slackware 12.2+Ruby on Rails

This morning I wanted to setup RoR on my slackware bawx to create some RAD stuff, so of course the first place I looked was Google and found a link to Chip Cuccio's tutorial on setting up the environment in Slackware12.2, great!  However, I didn't want to hand compile everything as he had mentioned, since this is on my development workstation and I have lots of other pre-configured servers running already, plus I knew I already had most the components installed, so I then turned my attention to to locate some slackbuild scripts.  After a quick search located and downloaded all the components I needed for a successful install! w00t w00t!  Below is just a quick thrown together howto to show how I did it.