Toby's Log page 2

New tires

I got new tires for my car Wednesday. General Altimax RT45’s. Those are the new version of the ones I’ve gotten several times in the past. They are a good mix of rating well on snow, rating well overall, and a relatively decent price. And just in time. They showed their worth on the snowy roads on Friday, having little trouble where my previous tires it would’ve been more nerve racking.

Continue reading post "New tires"

Apache PHP FPM and “Primary Script Unknown”

A while back, I wrote about dealing with the Apache / FastCGI error ‘Primary script unknown’ when trying to access non-existent PHP files. Bots often do this trying to test for vulnerabilities, and it can fill up error logs and be annoying to look through. In that post, I fixed the problem through mod_rewrite and a RewriteCond. For PHP 2.4+, there is a more broad and likely more efficient solution using the <If> directive. It will work for all virtual hosts on a server.

Continue reading post "Apache PHP FPM and “Primary Script Unknown”"