This gets all of the domains from ServerName and ServerAlias lines, takes out all of the white space and empty lines, and creates a file with just a list of the unique domain names.
This accounts for subdomains that use ‘www’ or have port :80 on the end.
For instance, www.somedomain.com and somedomain.com are the same, so the script takes out the ‘www.’ which leaves to copies of somedomain.com, which it then deletes one of them in the final output to the file. The same for ‘:80’.
A first project at my new job at the Scholar’s Lab at UVA was to update some old Omeka/Neatline sites. I wrote a script to take care of the process now and in the future. https://github.com/mossiso/onus I perhaps went a little overboard and made it pretty robust. I was going to take the opportunity to […]
Figuring out the possibilities for Apache and PHP reminds me of a Dr. Seuss book, “Fox in Sox”. It’s a favorite of mine. I love reading it to the kids. In it, Mr. Fox tries to get Mr. Knox to say all kinds of ridiculous (in meaning and hard to say) tongue twisters. At one […]
When I first became a systems administrator of a large web server, I wanted to know what the current traffic to all of the virtual hosts (vhosts) looked like. I wanted to see which domains were getting the most traffic and where that traffic was coming from. So began my long search for a sufficient […]
There are four basic steps to creating a personal website. 1. Content You may want to start out with a cool design, or fun idea on how to interact with visitors, or what have you. But really, the most important thing a website has going for it is the content. Design is a close second […]
Doh! Sometimes AWStats will miss some days in calculating stats for your site, and that leaves a big hole in your records. Usually, as in my case, it’s because I messed up. I reinstalled some software on our AWStats machine, and forgot to reinstall cron. Cron is the absolutely necessary tool for getting the server […]
This weeks installment of history found on the web includes links to a few sites with something special. Color photographs from the early days of color photography. Color somehow brings a photograph to more life, adds more detail, and helps get a better understanding of the time period. Sure you can see the style of […]
Back again with another roundup of websites promoting some history. This weeks focus is on the computers and other machines. Technologizer has come through in the past year or so with some really fun looks at technology of the past. Here are three: It’s amazing how ugly and non-functional computers were in the early stages. […]
I came across the site Artificial Owl this week. Artificial Owl finds images of long forgotten, man-made objects, locates them on a map and tells a bit of the story behind the object if possible. I was initially struck by the beautiful images of buildings, ships, airplanes, and automobiles left to deteriorate and crumble back […]