Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get Python 2.7 working as a CGI script in IIS6. I do this all the time on W2k8, but this is the first time I've tried to use it on IIS6 and I cannot get it to work. Googling suggests just two steps are needed:

  1. Create the Web Service Extension
  2. Add a mapping for .py

I've done both of these but when I try to open a page I get a 404 error. There must be something simple I'm missing. Any suggestions gratefully received while I still have some hair left!

I'm testing on a new install of W2k3R2 so there is nothing extra like URLScan or AV that might be interfering.

I created the Web Service Extension using:


I'm using Python in a virtual directory, and the directory properties are:


And finally the mapping is:

enter image description here

share|improve this question
up vote 2 down vote accepted

You can find the additional steps to map your D: Python executable as a CGI, documented on David Wang's MSN Blog

share|improve this answer
Hi Mike, I had already seen that article and gone through the steps it described. Anyhow, I thought I'd have one more go, and it worked! I don't know what I did wrong the first time, but anyhow the bounty is yours (in 22 hours when SE allows me to grant it :-) – John Rennie Jun 26 '12 at 11:31
I've set myself an Outlook reminder :-) It appears SE doesn't allow me to award the bonus until 24 hours after I created it, so I'll have to do it tomorrow. – John Rennie Jun 26 '12 at 12:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.