[mapserver-users] using mod_wsgi with mapserver

2011-08-17 Thread Mukesh Subedee
Hi all, I have configured and tested a simple application with mod_wsgi and found that its working properly. Now I am trying to use mod_wsgi with MapServer. I have configured my Apache virtual host for wsgi as:    Alias / /home/public_html/wsgi/             Options ExecCGI Indexes         Dire

Re: [mapserver-users] using mod_wsgi with mapserver

2011-08-18 Thread Stephan Meißl
Hi Mukesh, your Python script "wsgi-script.wsgi" needs to have a method named "application()" which needs to accept two parameters and has to return the response body (see e.g. [1] for details). Inside this method you can use MapScript like in the below incomplete example (see [2] for details):