Using URL Rewrite in IIS7 to have all Requests Handled by a Script

In my post last year about setting up Mercurial on IIS, I left it as an exercise for the reader to allow it so that index.py could be left out of the URLs. As an example, we want to be able to write http://myserver/myrepo instead of http://myserver/index.py/myrepo. Enter URL Rewrite! The easiest way to get… Continue reading Using URL Rewrite in IIS7 to have all Requests Handled by a Script

Setting up a Mercurial Repository under IIS

Setting up Mercurial to serve repositories using IIS has been on my to do list for months. I had a quick go at it late last year, but was thwarted by confusing solutions which quite frankly, just didn’t work for me. Many walkthroughs mention using a file named hgwebdir.cgi, but as of Mercurial 1.6, this… Continue reading Setting up a Mercurial Repository under IIS

An Alternative to Redirecting HTTP to HTTPS in IIS 7

Recently, I needed to ensure that a whole ASP.NET web application was forced to deliver content over a secure connection. Almost every page in the application contained sensitive data, and is was deemed acceptable for the small number of pages which didn’t contain secure content to be delivered over HTTPS too.  I started looking around… Continue reading An Alternative to Redirecting HTTP to HTTPS in IIS 7