Skip to content
David Cumps

Nucleus Hosting

  • Nucleus
  • 2007

I built the automation behind the Windows hosting of Nucleus, a Belgian hosting provider, between 2004 and 2007. It started as IIsAdmin, a command-line tool I wrote for Nucleus’s own staff to provision new accounts on their IIS servers. By the end of 2006 I had rebuilt it as a Windows service with plugins that other systems, such as Nucleus’s web-based control panel, could call directly.

A command-line tool for new accounts. IIsAdmin handled the checklist Nucleus’s team used to run by hand for every new website: create the Windows user account and its home directory, lock down the NTFS permissions so IIS and ASP.NET could only read what they needed, set up the IIS web site and its virtual directories with their own HTTP and SSL ports, and add an FTP account isolated to that customer’s own folder on Nucleus’s shared FTP server.

Smaller tools around it. In 2004 I wrote a handful of companion tools in the same style. IIsSetup prepared a fresh web server: the customers group, the shared folders for web sites, FTP logs and statistics with their permissions, and the isolated FTP site. IIsFixNTFS reset the permissions of an existing account’s folders (web root, statistics, logs and databases) when they had drifted, IIsFPSE secured FrontPage Server Extensions on a customer’s site, and IIsLogs cleaned up a site’s IIS log files after a set number of days, a month by default. New accounts started with a “website under construction” page pointing back to Nucleus until the customer uploaded their own site.

Into a service with plugins. In December 2006 I turned the same logic into a Windows service that ran on every Windows hosting server, with plugins for IIS settings, NTFS permissions and user accounts. At startup the service loaded every plugin DLL in its folder, and each plugin exposed its actions as a WCF service with a SOAP endpoint at its own configurable address, instead of a command line. That let other systems call into the hosting servers directly: a PHP sample I wrote shows a customer’s folder browsed and its IIS or ASP.NET permissions toggled per file through the service, the kind of self-service feature a hosting control panel needs. Callers signed in with a Windows account, which had to be a member of a dedicated security group on that server.

Every site in its own application pool. I also wrote IIsAppPools, a small tool that walked every site on an IIS server and moved any site still sharing an application pool into its own, so each customer’s site ran isolated from the others.

Technologies: C#, Windows Services, WCF, SOAP, ADSI, NTFS permissions, FrontPage Server Extensions, PostgreSQL.

David Geens
David is a technical consultant who has eye for details, knows his stuff and he does his job beyond average expectations. However it was briefly we worked together, I appreciate David for his skills and personality.
David Geens, CEO, Nucleus

You May Also Like