Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to set up an Apache instance on a windows box we have. I'm running a Python/Django application, and mod_wsgi is preferable so that I can restart individual applications. I do, however, need to run it under Windows. Apache just doesn't seem made to be easy to administer in Windows (last time I tried updating a Windows instance, I had to completely uninstall and reinstall it).

Are there any tools to simplify this? Or is there any way to get what I want to do out of IIS or another web server?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Google Code hosts both mod_wsgi and isapi-wsgi. You could configure an IIS server with the ISAPI WSGI module to get functionality similar to the Apache/mod_wsgi solution.

share|improve this answer
    
I just opened a thread on isapi_wsgi's google group on the subject, but I don't believe there is any way to restart individual applications using isapi_wsgi. mod_wsgi allows this in daemon mode. –  Jason Baker Jun 1 '09 at 18:11
2  
I figured out how to get this to work with isapi_wsgi. Apparently all you have to do is put it in its own Application Pool and recycle it if you want to restart just Python. –  Jason Baker Jun 2 '09 at 19:57
add comment

The daemon mode of Apache/mod_wsgi is not, and will not ever be, supported on Windows. Thus you are stuck with running all your WSGI applications in embedded mode, segregated by running them in different sub interpreters of the one process. This use of separate sub interpreters is the default for a mounted WSGI application and so you don't need to do anything special. This arrangement will not allow you to restart individual WSGI applications. Your only choice is to restart the whole Apache server to pick up changes.

Although semi automatic process reloading on changes is normally only an option with daemon mode, there is a back door method of doing the same thing with embedded mode on Windows. For details of this see:

http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode#Restarting_Windows_Apache

share|improve this answer
add comment

Your Answer

 
discard

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.