09 January 2012 ~ 0 Comments

Load balancing in EC2 with Nginx and HAProxy

TweetWe wanted to setup a loadbalanced web cluster in AWS for expansion. My first inclination was to use ELB for this, but I soon learned that ELB doesn’t let you allocate a static IP, requiring you to refer to it only by DNS name. This would be OK except for the fact that our current [...]

Continue Reading

16 November 2011 ~ 0 Comments

Installing Sun (Oracle) JDK 1.5 on an EC2 instance

TweetI’m currently working on moving a Tomcat-based application into EC2. The code was written for Java 5.0. While Java 6 would probably work, I’d like to keep everything as “same” as possible, since EC2 presents its own challenges. I spun up a couple of t1.micro instances and copied everything over, including the Java 5 JDK, [...]

Continue Reading

24 October 2011 ~ 0 Comments

Rescan SATA bus (aka hot-adding a SATA disk on a Linux guest in VMware without rebooting)

TweetLinux supports hot-adding disks but whenever I add a new vdisk in VMware the new disk doesn’t show up unless I reboot, which defeats the purpose of hot-add. This command forces a rescan of the bus: echo "- – -" > /sys/class/scsi_host/host0/scan dmesg shows the new disk has been found: Vendor: VMware Model: Virtual disk [...]

Continue Reading

20 September 2011 ~ 3 Comments

Making sure SSLv2 is disabled in Apache (and Nginx)

Tweet Edit Jan 24, 2012: Deleted all the crap from this story and just left the recommended Apache and Nginx SSL cipher suites for maximum security without SSLv2 and without BEAST vulnerability (at least according to Qualys). Apache httpd SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM; SSLHonorCipherOrder on nginx ssl_protocols SSLv3 TLSv1; ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM; ssl_prefer_server_ciphers on; [...]

Continue Reading

18 September 2011 ~ 4 Comments

Exchange (OWA) CAS crashes with 503 error – again

TweetThis just started happening again, with these errors appearing in the event viewer: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [...]

Continue Reading

31 August 2011 ~ 2 Comments

64-bit Firefox 6 on CentOS 6 x86_64 (or Fedora) with Flash 11

TweetSo I’ve gone back to Linux from Mac, due to the SSD issues I had with my Macbook Pro basically making VMware unusable. A Win7 VM would grind the guest and host to a halt on the 7200 RPM SATA OEM drive, and the SSD wouldn’t work, so I put the SSD back in my [...]

Continue Reading

23 August 2011 ~ 0 Comments

Macbook Pro locks up with SSD installed.

TweetA few weeks ago I switched from my trusty old HP nc8430 to a Macbook Pro (MC118LL/A) that was left spare when another employee left. I mostly enjoyed using Linux but I was tired of dealing with weird quirks like having X lock up, essentially forcing me to do a hard reboot. To transition, I [...]

Continue Reading

08 August 2011 ~ 1 Comment

Logging RT username in Apache access_log

TweetRT has its own internal accounting & tracking system for logging activity, but I was interested in even more granular stuff, like seeing who looked at which tickets. I figured it wouldn’t be that hard to log this in Apache. Well, I was kind of right, in that it wasn’t “hard,” but it took me [...]

Continue Reading