Redirecting paths that start with two slashes in Apache

Suppose that you have a dynamic web application of some sort that sitsbehind Apache, and an URL for one of your application's pages where thepath starts with two slashes instead of one starts going around. Inother words, people are sharing 'https://example.org // app/page',instead of the version with one slash at the start of the path. Youcan support this in your web app ( with some potential cautions ), but you would prefer to have Apacheredirect


The initramfs for old kernels can hide old versions of things

In a recent entry , I more or lessblamed a new minor Linux kernel version for changing the naming ofmy network interface. I had reasonable reasons to say this beyondjust rebooting into 5.12.12 and having the problem appear; I alsorebooted back into 5.12.11 and the problem disappeared again (Iended up going back and forth repeatedly and this was consistent).When the only changing thing is the kernel version, you can reasonablysuspect it, instead of (


Unused hardware in computers can now be distinctly inactive

When I wrote about monitoring the state of Linux network interfaceswith Prometheus ,I wished for a way to tell if there was link carrier on an unusednetwork interface (one that had not been configured as 'up' in the(Linux) kernel). Ben Hutchings commented on the entry to say (inpart):

This is more than just a restriction of the kernel's user-spaceAPIs. Network drivers are not expected to update link state while aninterface is down, and they may not be


Losing track of part of our Amanda configuration and then recovering it

Yesterday, I wrote an entry on two ways to have Amanda alwaysmake full backups of a filesystem , andmentioned that we'd started out with one way (forcing them with amadmin ) and had switched to the second way (configuring ' dumpcycle0 ') a few years ago. There's a story as to why I wrote an entryabout it now, instead of a few years ago.

For years, we've always been making full backups of our mail spool,because in our experience '


Two ways to have Amanda always make full backups of a filesystem

Amanda ( also ) is the open source backup system that weuse to run our disk-based backups (which Isee is now more than ten years old and we're still happy with itsdesign). Amanda normally does full backups of your filesystems oncein a while and then various levels of incrementals until the nextfull backup. However, sometimes there are various reasons that youwant to always do full backups of a particular filesystem; it maybe faster, it may be better for disaster recovery, or


Some brief notes on turning Firefox bookmarklets into convenient buttons

Yesterday when I talked about dealing with CSS fixed elementsin Firefox I mentioned that one of thegood looking solutions was Martin Tournoij's bookmarklet but that I lackeda good way to get access to bookmarklets because I don't useFirefox bookmarks and so don't have the bookmarks toolbar displayed . Today, after various poking around, I foundout how to do this in my setup, which was partly difficult becauseFirefox sometimes hides one of the title bar and URL bar customizationoptions.

First, what appears on


Dealing with CSS fixed position headers and footers in Firefox

I'll start with what I tweeted :

Does anyone know of a Firefox addon that finds CSS 'fixed' positionelements and removes that to make them non-fixed elements? There are anumber of addons that will hide fixed elements entirely, but I wouldrather have them remain visible but scroll offscreen as I scroll.

The Firefox addons I know for hiding CSS 'fixed' elements are Sticky Ducky - clean the fixed elements ,which seems to offer multiple levels of dealing with them, Fixedwidth and CSS Annihilator


Giving your Linux network interfaces fixed names (under udevd and networkd)

Suppose, not entirely hypothetically, that you always want yourmachine's primary network interface to be called ' em0 ' regardlessof what the combination of the kernel, networkd, and the systemdudevd want to call them today (something that has been known tochange). Until recently, my (incorrect) setup for this was a .link filethat looked like this:

[Match]MACAddress=2c:fd:a1:xx:xx:xx[Link]Description=

Monitoring the status of Linux network interfaces with Prometheus

Recently I wrote about how we found out a network cable had quietlygone bad and dropped the link to 100 Mbits/sec and mentioned in passing that we were now monitoring for this sortof thing (and in comments, Ivan askedhow we were doing this). We're doing our alerts for this through our existing Prometheus setup , usingthe metrics that node_exporter extracts from Linux's /sys/class/net data for network interface status , which puts some limits onwhat we can


Be careful when matching on Ethernet addresses in systemd-networkd

A not uncommon pattern in networkd is to write a .link or .network file that selects the hardware to work on by MAC address, because that'soften more stable than many of the other alternatives. For instance,you might write a .link file for your motherboard like this:

[Match]MACAddress=2c:fd:a1:xx:xx:xx[Link]Description=Onboard motherboard portMACAddressPolicy=persistentName=em0

Unfortunately this is dangerous