Ordered a GPS receiver :D

i-Blue 747

Well, i felt like i was in need of a new toy, so yesterday ordered an i-Blue 747 (gps receiver/track logger). So i guess i’ll be busy playing with it once it arrives. Already found two projects (http://gpsmapper.sourceforge.net/ and http://triptracker.sourceforge.net/) that would allow me to have a realtime track of my position using a GPRS enabled phone with the receiver. Also would like to contribute to OpenStreetMap, as there are no maps available for Paraguay, let’s see how hard can that be….

Enforce HTTPS usage

Want to enforce SSL usage on apache2?, after having it working you only need a few mod_rewrite lines. In the case of SLES9/10, create a file /etc/apache2/conf.d/enforce.conf with the following content:

# Se indica a apache que todas las conexiones al puerto 80 deben ir al puerto 433, sin excepciones/This forces SSL usage without exceptions
<IfModule !mod_rewrite.c>
LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so
<IfModule mod_rewrite.c>
RewriteEngine on
# La siguiente linea indica la condicion para mod_rewrite / mod_rewrite condition
ReWriteCond %{SERVER_PORT} !^443$
# Regla en caso de que la condicion anterior sea verdadera / rule applied in case the above condition is true
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]

The exact path to mod_rewrite module can be found with “rpm -ql apache2|grep rewrite”. Now restart apache (rcapache2 restart)