Cant set up IIS WSGI smart server

Asked by Kamyar on 2012-09-23

I have installed Mercurial IIS smart server using WSGI. I also have made many more WSGI+IIS (using PyIsapi) files that were not available officially successfully: Web2py, trac, Pyramid, Pylons (Rhodecode)....
But I did not get success on installing dear Bazaar on IIS. You have provided a brief guide which is not complete and verbose. Beside that, I prefer to have the python file which makes the required dll (as like Mercurial and Trac) instead of PyIsapi called file.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Kamyar
Solved:
2012-10-05
Last query:
2012-10-05
Last reply:
Kamyar (kamyar1979) said : #1

I discovered the problem. Please fix your IIS Guide:

1. In your IIS guide, for making a dumb server, which is in turn a prerequisite for making a smart server, adding .* to the MIME types is not enough, since IIS does not count extension-less files among .*! It is strange but I found a good resolution, with no writing MOdule or Handlers: just fill the box with a . (dot) this makes the IIS remove the dot and accepts Nothing as the extension.Now the dumb server works, and the next step also works as smart server.

2. On x64 servers, you can compile a PyISAPIe source as x64 build. I have done this and worked. I can add the link to the compiled dll if you ask me.

3. For better and easier installation on IIS, we need a WSGi script. As always I modified Apache WSGi script a bit for making IIS one. The script was good except I did not need to use the virtual directory as repository folder. I modified the script so that this requirement meet and also the MIME type modification is not needed any more. There is a version of ready script on my gist:
http://gist.github.com/kamyar1979

Kamyar (kamyar1979) said : #2

I discovered the problem. Please fix your IIS Guide:

1. In your IIS guide, for making a dumb server, which is in turn a prerequisite for making a smart server, adding .* to the MIME types is not enough, since IIS does not count extension-less files among .*! It is strange but I found a good resolution, with no writing MOdule or Handlers: just fill the box with a . (dot) this makes the IIS remove the dot and accepts Nothing as the extension.Now the dumb server works, and the next step also works as smart server.

2. On x64 servers, you can compile a PyISAPIe source as x64 build. I have done this and worked. I can add the link to the compiled dll if you ask me.

3. For better and easier installation on IIS, we need a WSGi script. As always I modified Apache WSGi script a bit for making IIS one. The script was good except I did not need to use the virtual directory as repository folder. I modified the script so that this requirement meet and also the MIME type modification is not needed any more. There is a version of ready script on my gist:
git://gist.github.com/3810809.git