Hello
I have run following python web.py script on NGINX + Gunicorn:

>
> def application(environ, start_response):
   status = '200 OK'
   output = "Hello python world"
   response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
   start_response(status, response_headers)
   return [output]


Now I need to move the code to Windows Server 64bit platform. NGinx have 
issues with 64 bit, so I moved my config to Apache, installed python2.7 
64bit and mod_wsgi. Renamed web.py to web.wsgi and run with following 
Apache directive:
WSGIScriptAlias / "C:\myapp\srv\htdocs\web.wsgi". It seems it doesn't enter 
application method, when I return something from body it's says something 
about bad headers, does it mean I need additional abstraction layer to 
handle requests manually in my script?
I've seen https://docs.python.org/2/library/wsgiref.html but this creates 
server listening on particular port, do I really need that if apache is my 
webserver?

As I've read Windows version doesn't support daemon mode, only embedded 
mode. Does this means I can't run code when body of python script will be 
run once and particular method(like application here) will support each 
request? Or those are only performance issues? 

TL;DR How to run def application() for earch request on Windows with 
webserver offloading things like Client SSL Certificate and passing them as 
variables to python?

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to