CommandBox, Rewrite Woes & How to Debug Them

Over the last day and a half, I’ve been plagued by what seemed an oddity when working on a logging demo in CommandBox. It had me thrown to the point of thinking I came across some strange bug. So I wanted to touch on how to debug the network requests and responses going on behind the scenes of a CommandBox server instance. What was happening? Well, when I fired up my application in CommandBox and went to check for a log entry, I was literally seeing double. [Read More]

A Brief Look at the Rewrite Valve in Tomcat 8

Recently I learned that Tomcat 8 has its own built in approach to handling URL rewriting to achieve things like SES (pretty) URLs. Personally I do URL rewrites from Nginx, as it’s the forward facing web server and proxy to all of my Lucee apps that live in Tomcat; but, for the sake of learning, I wanted to take a look at what it had to offer. Setting it up… Reading through the Tomcat 8 Rewrite Docs, I was delighted to see that they use a similar approach to syntax as Apache’s Mod_Rewrite so the learning curve of writing actual rewrites is minimal to anyone who’s worked with Apache in the past. [Read More]