Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

Leap second

Photo of a server adding a leap second

KHTML/Safari doesn’t like negative absolute positioning/background positioning

I don’t know why. Shrug.

VirtualHost, mod_proxy, and Apache HTTP 2.0 documentation

I had to setup a virtual host that proxied through to another server today, and found the Apache 2.0 documentation on that matter particularly unhelpful for a rather trivial reason.

Here’s their broken version:

<VirtualHost *:*> ProxyPreserveHost On ProxyPass / http://192.168.111.2 ProxyPassReverse / http://192.168.111.2/ ServerName hostname.example.com </VirtualHost>

Here’s my working version:

<VirtualHost *:*> ProxyPreserveHost On ProxyPass / http://192.168.111.2/ ProxyPassReverse / http://192.168.111.2/ ServerName hostname.example.com </VirtualHost>

Spot the difference.

Yes, it was as simple as an omitted trailing slash.

Only takes a minute or two to figure out what’s going wrong, but it’s pretty darn annoying for that minute: I assume, as would many people, that documentation is generally infallible — its purpose being the cure to various software ailments, not the cause! Ah well. I’d have edited the Apache documentation, but it’s not a wiki and I can’t be bothered joining whatever mailing list I’d have to join to get one character added to their site!

NYE/Geek Fest

Good fun. They’ve only been in the house (which doesn’t have a domain yet! I suggest TEDonMarian.net) for two weeks, but already have… err… the most important stuff sorted.

Haphazardly stacked rack-mount gear (not yet in a rack)

The rack, I’m assured, is coming. ;-)

Oh, no, there is a domain. http://lttd.net/ is it.

From the shadows

The original, shadowy image of the front of the pile of gear
The edited image of the front of the same pile of gear

I ♥ the GIMP.

The above edit (dark is before, light — visible — is after) took me about a minute and a half, and went something like Curve, Despeckle, Resample (scale for web), Despeckle (finer adjustment on wand-selected area), Unsharp Mask. I don’t think I even know how to do all those things on Photoshop!

But that wasn’t the purpose of this post. The darker original was the source from which I extracted the quite-visible lighter version. That is why I nearly always shoot with my flash off: it’s possible to recover ridiculous amounts from the shadows — even with a crappy digital that won’t let you use RAW — but it’s nigh on impossible to recover that lost to the nether-regions of over-exposed stock.