Rip's Domain

Websites and SCMs branches, there has to be a better way.

Posted in Apache, Git, IIS, Linux, SCM, SVN, Windows by rip747 on September 24, 2009

Has this ever happened to you? You’re programming a website and within your source control manager (SCM) you have several branches. One branch could be the current version of the website (trunk or master depending on your SCM) and other branches could contain some new features or bugs fixes that you’re working on.

Now you want to test out or show the new features or bugfixes to your team or employer that are contained within these other branches and this is where the problem lies, how do you deploy these branches? Well its pretty easy right? You setup and configure an entirely new website to have the people hit that branch. So if your current version is residing on, you might setup and configure a new website at for the branch you want people to have a look at.

To me this is a HUGE waste of time. For every branch you need to demo or test, you need to create a new website. Wouldn’t it be great if there was something out there that could allow the webserver to talk to your SCM directly and pull back the branch that you want simply be addressing it in the url?

For instance. Let’s say in my SCM I have a master branch containing the current version of the website and a branch called bug27 that contains some fixes for a bug I’m working on. Now if I wanted people to access both of these branches from the internet, I would have to configure two websites on my webserver. would point to a directory containing the master branch files and would point a different directory containing the bug27 branch files.

Imagine if all I had to do was to configure one website with two host headers, one for master at and one for bug27 at Then just point the website to my SCM repo. Now depending on which host the people come to the website with, the webserver would be smart enough to pull back that branch from my SCM. This totally eliminates the need to configure a new website for every branch that you have.

That said, is there anything out there like this for Apache or IIS?


IIS Admin service terminates with 0x8021080A

Posted in IIS, TechSupport, Windows by rip747 on August 6, 2008

After having some disk problems, I tried to start my development service and low and behold the World Wide Web publishing service wouldn’t start. Seems that the IIS Admin service (which the WWW service depends on) was terminating with an error code of 0x8021080A. Seems that during the chkdsk something was overwritten or corrupted.

Investigating I came to find that MetaBase.xml file that the IIS Admin service uses was a 0KB size. Which means basically that it lost all the configuration that IIS had. For those that don’t know, IIS has two XML files (MBSchema.xml and MetaBase.xml) that it uses to store all the configuration for your websites and IIS which are located in c:\windows\system32\inetsrv.

Even though this basically sucked, it was very easy to fix:

1) in windows explorer, browse to c:\windows\system32\inetsrv

2) rename the two XML files that IIS uses for configure.

3) goto the history folder (c:\windows\system32\inetsrv\history) and find the most recent backups of the two files.

4) copy the backups to the c:\windows\system32\inetsrv and rename them.

5) start the IIS Admin service.