Tag Archives: Apache

Extensibly Redirecting to HTTPS in Apache

I often find myself Googling apache con­fig snip­pets and now that I’m man­ag­ing a server myself, HTTPS is use­ful pretty much every­where. Here is a rewrite that will work in either .htac­cess or a vhost dec­la­ra­tion to redi­rect traf­fic to HTTPS with min­i­mal URL hard-coding.

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTPS} !=on
	RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>

Productivity Week

Per­haps my most pro­duc­tive week of the year is the one between Christ­mas and New Years. Hav­ing just secured my snazzy new domain wi.tt, I took off to get my money’s worth by set­ting up all kinds of ser­vices to make this site a com­mand cen­ter for all of my projects.

Already, I’ve configured:

  • Email (Postfix/Dovecot/Roundcube)
  • Apache
  • MySQL
  • Word­Press (with caching and security)
  • SSL (just a snakeoil cert for now)
  • URL short­ener (YOURLS)

Hope­fully I’ll remem­ber to doc­u­ment all the stuff I’ve been work­ing on to have a record to look back on.