PagePark is becoming a serious web server. Just wanted to say that. The docs make it sound like a one-off hack for easily hosting parked domains. It was that, at the start, about five years ago. Over time I've been adding features, and trying to keep the code readable and the docs up to date. #
The idea is to be able to put data, scripts, development notes for a site with the site itself. When you're managing as many domains as I am, economies like that may prevent things from getting lost, or having version mismatches. At the same time, I want control over what people will see. #
My first plan was to use . as Apache and nginx do. I implemented it and started to set up a test case, and found immediately why this wouldn't work. Mac OS, which I use on my primary machine, uses a . at the beginning of a file name to hide a file or folder. I know I can create such files with a script or at the command line, but the point is to be able to hide stuff from web users that I can see myself. #
Next I went with # as the special character. It's what we used in Frontier's website framework. But when I tried to test it the browser chops off everything after the # which is awkward. #
Then Philip Borenstein said that Jekyll and other static site generators use underscore to indicate a hidden file or folder. I'm guessing that will work because they had to fit in with both browsers and operating systems, as PagePark does. I'm going to go with that for a bit and see if I'm happy with the way it goes. Respecting prior art is always a good idea. #
Last update: Monday December 9, 2019; 8:31 PM EST.
You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)